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);