From 2cb5d6b0df3c004a7a49dff168ab05645608443d Mon Sep 17 00:00:00 2001 From: Brett McBride Date: Wed, 7 Sep 2022 22:42:38 +1000 Subject: [PATCH] ignore phpstan false positive (#813) --- 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); } }