phpstan fix

This commit is contained in:
Fabio Ivona
2022-02-05 11:36:02 +01:00
parent 8ca4caaffa
commit 6f9ebe04b0
2 changed files with 18 additions and 3 deletions

View File

@ -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);