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

@ -29,15 +29,10 @@ use function count;
final class BandwidthStatsTracker{
/** @var int[] */
private $history;
/** @var int */
private $nextHistoryIndex = 0;
/** @var int */
private $bytesSinceLastRotation = 0;
/** @var int */
private $totalBytes = 0;
private array $history;
private int $nextHistoryIndex = 0;
private int $bytesSinceLastRotation = 0;
private int $totalBytes = 0;
/** @phpstan-param positive-int $historySize */
public function __construct(int $historySize){