mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
Update src/PendingCalls/UsesCall.php
Co-authored-by: Owen Voke <development@voke.dev>
This commit is contained in:
@ -84,7 +84,7 @@ final class UsesCall
|
|||||||
}, $targets);
|
}, $targets);
|
||||||
|
|
||||||
$this->targets = array_reduce($targets, function (array $accumulator, string $target): array {
|
$this->targets = array_reduce($targets, function (array $accumulator, string $target): array {
|
||||||
if (($matches = glob($target)) != false) {
|
if (($matches = glob($target)) !== false) {
|
||||||
foreach ($matches as $file) {
|
foreach ($matches as $file) {
|
||||||
$accumulator[] = (string) realpath($file);
|
$accumulator[] = (string) realpath($file);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user