From ec4654bf364f6e0708375cb08ee4a91bfa769080 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Sat, 28 Dec 2024 21:02:43 +0700 Subject: [PATCH] clean up useless assign --- src/Collector.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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;