fix tests and static type check error

This commit is contained in:
Mohammad Zahed
2023-06-10 18:00:46 +03:00
parent e00efb1b6d
commit aa9fe351a6
4 changed files with 6 additions and 5 deletions

View File

@ -84,7 +84,7 @@ final class UsesCall
}, $targets);
$this->targets = array_reduce($targets, function (array $accumulator, string $target): array {
if ($matches = glob($target)) {
if (($matches = glob($target)) != false) {
foreach ($matches as $file) {
$accumulator[] = (string) realpath($file);
}