mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 16:27:23 +01:00
phpstan fix
This commit is contained in:
@ -151,6 +151,7 @@ final class Expectation
|
||||
throw new BadMethodCallException('Expectation value is not iterable.');
|
||||
}
|
||||
|
||||
//@phpstan-ignore-next-line
|
||||
$value = is_array($this->value) ? $this->value : iterator_to_array($this->value);
|
||||
$keys = array_keys($value);
|
||||
$values = array_values($value);
|
||||
|
||||
Reference in New Issue
Block a user