From da0f83eb23aa5886c6f4da1d8c57b9c701d09414 Mon Sep 17 00:00:00 2001 From: Tim MacDonald Date: Mon, 13 Apr 2020 12:42:26 +1000 Subject: [PATCH] remove temp var --- src/CallableFake.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/CallableFake.php b/src/CallableFake.php index b868701..fc4205e 100644 --- a/src/CallableFake.php +++ b/src/CallableFake.php @@ -58,9 +58,7 @@ public function assertCalled(callable $callback): self public function assertNotCalled(callable $callback): self { - $calls = $this->called($callback); - - Assert::assertCount(0, $calls, 'An unexpected callable was called.'); + Assert::assertCount(0, $this->called($callback), 'An unexpected callable was called.'); return $this; }