mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 16:27:23 +01:00
refactor: PHP 8 features
This commit is contained in:
@ -15,19 +15,13 @@ final class HigherOrderTapProxy
|
||||
{
|
||||
private const UNDEFINED_PROPERTY = 'Undefined property: P\\';
|
||||
|
||||
/**
|
||||
* The target being tapped.
|
||||
*
|
||||
* @var TestCase
|
||||
*/
|
||||
public $target;
|
||||
|
||||
/**
|
||||
* Create a new tap proxy instance.
|
||||
*/
|
||||
public function __construct(TestCase $target)
|
||||
{
|
||||
$this->target = $target;
|
||||
public function __construct(
|
||||
public TestCase $target
|
||||
) {
|
||||
// ..
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user