Skip to content

Commit bdac390

Browse files
staabmnicolas-grekas
authored andcommitted
[DependencyInjection] Drop IO in FileLoader
1 parent 42b623d commit bdac390

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Loader/FileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ private function findClasses(string $namespace, string $pattern, array $excludeP
262262
continue;
263263
}
264264

265-
if (!str_ends_with($path, '.php') || !$info->isReadable()) {
265+
if (!str_ends_with($path, '.php')) {
266266
continue;
267267
}
268268
$class = $namespace.ltrim(str_replace('/', '\\', substr($path, $prefixLen, -4)), '\\');

0 commit comments

Comments
 (0)