Skip to content

Commit

Permalink
cs fix
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Dec 28, 2024
1 parent 29b6d2b commit 3e18640
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Collector.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function getResults(): array
$collectedData = [];
$isCallableWhen = is_callable($this->when);

if (is_callable($this->when)) {
if ($isCallableWhen) {
// filter must be a callable with bool return type
Filter::boolean($this->when);

Check failure on line 77 in src/Collector.php

View workflow job for this annotation

GitHub Actions / PHP 8.1

Parameter #1 $filter of static method ArrayLookup\Assert\Filter::boolean() expects callable(): mixed, (callable(mixed, int|string|null): bool)|null given.

Check failure on line 77 in src/Collector.php

View workflow job for this annotation

GitHub Actions / PHP 8.2

Parameter #1 $filter of static method ArrayLookup\Assert\Filter::boolean() expects callable(): mixed, (callable(mixed, int|string|null): bool)|null given.
}
Expand Down

0 comments on commit 3e18640

Please sign in to comment.