From 783768cb93acc3822fc2ef44bbc5253ba4292ba5 Mon Sep 17 00:00:00 2001 From: Brett McBride Date: Tue, 6 Sep 2022 23:17:21 +1000 Subject: [PATCH] ignore phpstan false positive --- src/SDK/Metrics/MetricObserver/MultiObserver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SDK/Metrics/MetricObserver/MultiObserver.php b/src/SDK/Metrics/MetricObserver/MultiObserver.php index 0cb007f02..eca009adf 100644 --- a/src/SDK/Metrics/MetricObserver/MultiObserver.php +++ b/src/SDK/Metrics/MetricObserver/MultiObserver.php @@ -25,7 +25,7 @@ final class MultiObserver implements MetricObserverInterface public function __invoke(ObserverInterface $observer): void { foreach ($this->callbacks as $token => $callback) { - if (isset($this->callbacks[$token])) { + if (isset($this->callbacks[$token])) { //@phpstan-ignore-line callbacks can be unregistered during collection $callback($observer); } }