From 675372c794e6363806bbdee6a988daa0ce53b96b Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Tue, 10 Dec 2024 11:54:42 +0000 Subject: [PATCH] chore: fixes types --- src/PendingCalls/AfterEachCall.php | 2 +- src/PendingCalls/BeforeEachCall.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PendingCalls/AfterEachCall.php b/src/PendingCalls/AfterEachCall.php index 2fdc6679..f5fc5122 100644 --- a/src/PendingCalls/AfterEachCall.php +++ b/src/PendingCalls/AfterEachCall.php @@ -56,7 +56,7 @@ final class AfterEachCall $afterEachTestCase = ChainableClosure::boundWhen( fn (): bool => $describing === [] || in_array(Arr::last($describing), $this->__describing, true), - ChainableClosure::bound(fn () => $proxies->chain($this), $this->closure)->bindTo($this, self::class), // @phpstan-ignore-line + ChainableClosure::bound(fn () => $proxies->chain($this), $this->closure)->bindTo($this, self::class), )->bindTo($this, self::class); assert($afterEachTestCase instanceof Closure); diff --git a/src/PendingCalls/BeforeEachCall.php b/src/PendingCalls/BeforeEachCall.php index 3170d8ea..fa0476c3 100644 --- a/src/PendingCalls/BeforeEachCall.php +++ b/src/PendingCalls/BeforeEachCall.php @@ -79,7 +79,7 @@ final class BeforeEachCall $beforeEachTestCase = ChainableClosure::boundWhen( fn (): bool => $describing === [] || in_array(Arr::last($describing), $this->__describing, true), - ChainableClosure::bound(fn () => $testCaseProxies->chain($this), $this->closure)->bindTo($this, self::class), // @phpstan-ignore-line + ChainableClosure::bound(fn () => $testCaseProxies->chain($this), $this->closure)->bindTo($this, self::class), )->bindTo($this, self::class); assert($beforeEachTestCase instanceof Closure);