Skip to content

Commit d93553d

Browse files
authored
Merge pull request google#146 from cabloo/patch-1
stop autoloader when matching class is found
2 parents 0a54d9c + 40a12f6 commit d93553d

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)