Skip to content

Commit

Permalink
Corrected comparison code (ref #1452)
Browse files Browse the repository at this point in the history
  • Loading branch information
gsherwood committed May 9, 2017
1 parent 66accb9 commit b1dd580
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit b1dd580

Please sign in to comment.