diff --git a/autoload.php b/autoload.php index 3a97664679..b6fe239862 100644 --- a/autoload.php +++ b/autoload.php @@ -165,7 +165,7 @@ public static function loadFile($path) } if ($className === null) { - $newClasses = array_reverse(array_diff(get_declared_interfaces(), $classes)); + $newClasses = array_reverse(array_diff(get_declared_interfaces(), $interfaces)); foreach ($newClasses as $name) { if (isset(self::$loadedFiles[$name]) === false) { $className = $name; @@ -175,7 +175,7 @@ public static function loadFile($path) } if ($className === null) { - $newClasses = array_reverse(array_diff(get_declared_traits(), $classes)); + $newClasses = array_reverse(array_diff(get_declared_traits(), $traits)); foreach ($newClasses as $name) { if (isset(self::$loadedFiles[$name]) === false) { $className = $name;