1
0
mirror of https://github.com/danog/class-finder.git synced 2024-11-27 04:24:41 +01:00

Make tests pass.

This commit is contained in:
Hayden Pierce 2018-07-21 16:38:22 -05:00
parent 93e08261b7
commit b5ccf31bc3

View File

@ -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);
}
/**