From 9c202fa2d74d11149c2171c04ddb48e8b45edbca Mon Sep 17 00:00:00 2001 From: luke Date: Fri, 9 Jul 2021 16:07:37 +0100 Subject: [PATCH] Improves type-hinting for tap method --- src/Support/HigherOrderCallables.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Support/HigherOrderCallables.php b/src/Support/HigherOrderCallables.php index 46503e67..a6ecccf3 100644 --- a/src/Support/HigherOrderCallables.php +++ b/src/Support/HigherOrderCallables.php @@ -5,6 +5,8 @@ declare(strict_types=1); namespace Pest\Support; use Pest\Expectation; +use Pest\PendingObjects\TestCall; +use PHPUnit\Framework\TestCase; /** * @internal @@ -50,11 +52,9 @@ final class HigherOrderCallables } /** - * @template TValue + * Tap into the test case to perform an action and return the test case. * - * @param callable(): TValue $callable - * - * @return TValue|object + * @return TestCall|TestCase|object */ public function tap(callable $callable) {