Merge pull request #489 from owenvoke/bugfix/phpstan-fixes

fix: resolve PHPStan warnings
This commit is contained in:
Nuno Maduro
2022-03-04 08:56:52 +00:00
committed by GitHub
2 changed files with 1 additions and 1 deletions

View File

@ -48,6 +48,7 @@ final class BootFiles
if (is_dir($filename)) {
$directory = new RecursiveDirectoryIterator($filename);
$iterator = new RecursiveIteratorIterator($directory);
/** @var \DirectoryIterator $file */
foreach ($iterator as $file) {
$this->load($file->__toString());
}

View File

@ -151,7 +151,6 @@ 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);