mirror of
https://github.com/pestphp/pest.git
synced 2026-03-09 09:17:23 +01:00
refactor: PHP 8 features
This commit is contained in:
14
src/Each.php
14
src/Each.php
@ -11,22 +11,14 @@ namespace Pest;
|
||||
*/
|
||||
final class Each
|
||||
{
|
||||
/**
|
||||
* @var Expectation
|
||||
*/
|
||||
private $original;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
private $opposite = false;
|
||||
private bool $opposite = false;
|
||||
|
||||
/**
|
||||
* Creates an expectation on each item of the iterable "value".
|
||||
*/
|
||||
public function __construct(Expectation $original)
|
||||
public function __construct(private Expectation $original)
|
||||
{
|
||||
$this->original = $original;
|
||||
// ..
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user