Skip to content

Commit

Permalink
Initialize certificates array in Unit class
Browse files Browse the repository at this point in the history
The array $certificates in the Unit class is now initialized as empty by default. This change is made to avoid any potential issues caused by trying to access or manipulate this array when it's still undefined.
  • Loading branch information
Pavlusha311245 committed Jan 18, 2024
1 parent ba4c3af commit 71e4613
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Unit.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Unit implements UnitInterface
*
* @var array
*/
private array $certificates;
private array $certificates = [];

/**
* Contains Statistics object
Expand Down

0 comments on commit 71e4613

Please sign in to comment.