Skip to content

Commit

Permalink
clean up useless assign
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Dec 28, 2024
1 parent 9841dd1 commit ec4654b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Collector.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ec4654b

Please sign in to comment.