mirror of
https://github.com/danog/class-finder.git
synced 2024-11-30 04:29:03 +01:00
Make tests pass.
This commit is contained in:
parent
93e08261b7
commit
b5ccf31bc3
@ -47,9 +47,11 @@ class ClassFinder
|
||||
return $namespace . '\\' . str_replace('.php', '', $file);
|
||||
}, $files);
|
||||
|
||||
return array_filter($classes, function($possibleClass){
|
||||
$classes = array_filter($classes, function($possibleClass){
|
||||
return class_exists($possibleClass);
|
||||
});
|
||||
|
||||
return array_values($classes);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user