diff --git a/src/Collector.php b/src/Collector.php index 6ad5ae9..4597923 100644 --- a/src/Collector.php +++ b/src/Collector.php @@ -78,11 +78,7 @@ public function getResults(): array foreach ($this->data as $key => $datum) { if ($this->when !== null) { - /** - * @var callable(mixed $datum, int|string|null $key): bool $when - */ - $when = $this->when; - $isFound = ($when)($datum, $key); + $isFound = ($this->when)($datum, $key); if (! $isFound) { continue;