From b8c5bec31b935ee82c8a85837abd7869274a2167 Mon Sep 17 00:00:00 2001 From: Viktor-Truhanovich <34626644+Viktor-Truhanovich@users.noreply.github.com> Date: Sat, 19 Nov 2022 22:11:55 +0300 Subject: [PATCH] Added initialization of the property collectors with an empty array (#91) --- src/EventListener/DeclareMetricsListener.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EventListener/DeclareMetricsListener.php b/src/EventListener/DeclareMetricsListener.php index 1c7a79d..7aed949 100644 --- a/src/EventListener/DeclareMetricsListener.php +++ b/src/EventListener/DeclareMetricsListener.php @@ -17,7 +17,7 @@ final class DeclareMetricsListener implements EventSubscriberInterface /** * @var array */ - private array $collectors; + private array $collectors = []; public function __construct(MetricsInterface $metrics) {