From 71e461306ac2c7524a59db66ec217f276fe69e1f Mon Sep 17 00:00:00 2001 From: Pavel Zavadski Date: Thu, 18 Jan 2024 13:41:00 +0100 Subject: [PATCH] Initialize certificates array in Unit class 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. --- src/Unit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Unit.php b/src/Unit.php index ffa4657..85df5ed 100644 --- a/src/Unit.php +++ b/src/Unit.php @@ -28,7 +28,7 @@ class Unit implements UnitInterface * * @var array */ - private array $certificates; + private array $certificates = []; /** * Contains Statistics object