Skip to content

Commit

Permalink
Remove cast
Browse files Browse the repository at this point in the history
  • Loading branch information
timacdonald committed May 16, 2024
1 parent aeb67ad commit 7b372f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CallableFake.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public function wasNotInvoked(): bool
public function called(callable $callback): array
{
return array_filter($this->invocations, function (array $arguments) use ($callback): bool {
return (bool) $callback(...$arguments);
return $callback(...$arguments);
});
}
}

0 comments on commit 7b372f0

Please sign in to comment.