Skip to content

Commit ec4654b

Browse files
committed
clean up useless assign
1 parent 9841dd1 commit ec4654b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Collector.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,7 @@ public function getResults(): array
7878

7979
foreach ($this->data as $key => $datum) {
8080
if ($this->when !== null) {
81-
/**
82-
* @var callable(mixed $datum, int|string|null $key): bool $when
83-
*/
84-
$when = $this->when;
85-
$isFound = ($when)($datum, $key);
81+
$isFound = ($this->when)($datum, $key);
8682

8783
if (! $isFound) {
8884
continue;

0 commit comments

Comments
 (0)