From 7b372f0188a0d0c30ba75fb8b6bba6faaed530d7 Mon Sep 17 00:00:00 2001 From: Tim MacDonald Date: Thu, 16 May 2024 14:00:37 +1000 Subject: [PATCH] Remove cast --- src/CallableFake.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CallableFake.php b/src/CallableFake.php index 525e607..9fb478a 100644 --- a/src/CallableFake.php +++ b/src/CallableFake.php @@ -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); }); } }