Skip to content

Commit

Permalink
ignore phpstan false positive
Browse files Browse the repository at this point in the history
  • Loading branch information
brettmc committed Sep 6, 2022
1 parent 77838b3 commit 783768c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SDK/Metrics/MetricObserver/MultiObserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 783768c

Please sign in to comment.