Skip to content

Commit 58410f4

Browse files
committed
Autoloader: fix missing return value
An autoloader should always return a boolean value to indicate whether or not it has loaded a file. This allows for chaining autoloaders. In most cases, the `return` statement in the autoloader already returned a boolean, this was the only exception.
1 parent bb267bb commit 58410f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public static function load($class)
7373
// Make sure we don't try to load any of Composer's classes
7474
// while the autoloader is being setup.
7575
if (strpos($class, 'Composer\\') === 0) {
76-
return;
76+
return false;
7777
}
7878

7979
if (strpos(__DIR__, 'phar://') !== 0

0 commit comments

Comments
 (0)