From b5ccf31bc390966329bfabe196193787e5c580f7 Mon Sep 17 00:00:00 2001 From: Hayden Pierce Date: Sat, 21 Jul 2018 16:38:22 -0500 Subject: [PATCH] Make tests pass. --- src/ClassFinder.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ClassFinder.php b/src/ClassFinder.php index d0dfa0e..0b1430e 100644 --- a/src/ClassFinder.php +++ b/src/ClassFinder.php @@ -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); } /**