function Factory::resolveWildcards
@psalm-param list<non-empty-string> $paths
@psalm-return list<non-empty-string>
1 call to Factory::resolveWildcards()
- Factory::getFileIterator in vendor/
phpunit/ php-file-iterator/ src/ Factory.php - @psalm-param list<non-empty-string>|non-empty-string $paths @psalm-param list<non-empty-string>|string $suffixes @psalm-param list<non-empty-string>|string $prefixes @psalm-param list<non-empty-string> $exclude
File
-
vendor/
phpunit/ php-file-iterator/ src/ Factory.php, line 90
Class
- Factory
- @internal This class is not covered by the backward compatibility promise for phpunit/php-file-iterator
Namespace
SebastianBergmann\FileIteratorCode
private function resolveWildcards(array $paths) : array {
$_paths = [
[],
];
foreach ($paths as $path) {
if ($locals = glob($path, GLOB_ONLYDIR)) {
$_paths[] = array_map('\\realpath', $locals);
}
else {
// @codeCoverageIgnoreStart
$_paths[] = [
realpath($path),
];
// @codeCoverageIgnoreEnd
}
}
return array_values(array_filter(array_merge(...$_paths)));
}