mirror of
https://github.com/pestphp/pest.git
synced 2026-03-12 02:37:22 +01:00
Improves type-hinting for target in HigherOrderTapProxy
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user