From 50ece576a715950cd8698942058d4e51067faed4 Mon Sep 17 00:00:00 2001 From: luke Date: Fri, 9 Jul 2021 16:09:53 +0100 Subject: [PATCH] Improves type-hinting for target in HigherOrderTapProxy --- src/Support/HigherOrderTapProxy.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Support/HigherOrderTapProxy.php b/src/Support/HigherOrderTapProxy.php index 4b5664d3..3c4f3968 100644 --- a/src/Support/HigherOrderTapProxy.php +++ b/src/Support/HigherOrderTapProxy.php @@ -4,6 +4,7 @@ declare(strict_types=1); namespace Pest\Support; +use PHPUnit\Framework\TestCase; use ReflectionClass; use Throwable; @@ -17,16 +18,14 @@ final class HigherOrderTapProxy /** * The target being tapped. * - * @var mixed + * @var TestCase */ public $target; /** * Create a new tap proxy instance. - * - * @param mixed $target */ - public function __construct($target) + public function __construct(TestCase $target) { $this->target = $target; }