Improves type-hinting for target in HigherOrderTapProxy

This commit is contained in:
luke
2021-07-09 16:09:53 +01:00
parent 9c202fa2d7
commit 50ece576a7

View File

@ -4,6 +4,7 @@ declare(strict_types=1);
namespace Pest\Support; namespace Pest\Support;
use PHPUnit\Framework\TestCase;
use ReflectionClass; use ReflectionClass;
use Throwable; use Throwable;
@ -17,16 +18,14 @@ final class HigherOrderTapProxy
/** /**
* The target being tapped. * The target being tapped.
* *
* @var mixed * @var TestCase
*/ */
public $target; public $target;
/** /**
* Create a new tap proxy instance. * Create a new tap proxy instance.
*
* @param mixed $target
*/ */
public function __construct($target) public function __construct(TestCase $target)
{ {
$this->target = $target; $this->target = $target;
} }