Skip to content

Commit

Permalink
Added initialization of the property collectors with an empty array (#91
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Victor-Truhanovich authored Nov 19, 2022
1 parent 7469239 commit b8c5bec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EventListener/DeclareMetricsListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ final class DeclareMetricsListener implements EventSubscriberInterface
/**
* @var array<string, CollectorInterface>
*/
private array $collectors;
private array $collectors = [];

public function __construct(MetricsInterface $metrics)
{
Expand Down

0 comments on commit b8c5bec

Please sign in to comment.