Skip to content

Commit 40a12f6

Browse files
authored
stop autoloader when matching class is found
1 parent d3274db commit 40a12f6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/autoload.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
$path = dirname(__FILE__).'/'.$class.'.php';
2727
if (is_readable($path)) {
2828
require_once $path;
29+
30+
return;
2931
}
3032

3133
/* If we didn't find what we're looking for already, maybe it's

0 commit comments

Comments
 (0)