Modernize private property declarations in src/network

This commit is contained in:
Dylan K. Taylor
2022-05-17 21:22:33 +01:00
parent cd016bedce
commit 6eac2ea7a5
31 changed files with 154 additions and 340 deletions

View File

@ -37,18 +37,13 @@ class EncryptionContext{
/** @var bool */
public static $ENABLED = true;
/** @var string */
private $key;
private string $key;
/** @var Cipher */
private $decryptCipher;
private Cipher $decryptCipher;
private int $decryptCounter = 0;
/** @var int */
private $decryptCounter = 0;
/** @var Cipher */
private $encryptCipher;
/** @var int */
private $encryptCounter = 0;
private Cipher $encryptCipher;
private int $encryptCounter = 0;
public function __construct(string $encryptionKey, string $algorithm, string $iv){
$this->key = $encryptionKey;