Skip to content

Commit

Permalink
[ClassLoader] fixed usage of trait_exists()
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Oct 3, 2011
1 parent 8d6add6 commit cf4a91e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -54,7 +54,7 @@ public function loadClass($class)
if ($file = $this->findFile($class)) {
require $file;

if (!class_exists($class, false) && !interface_exists($class, false) && (!function_exists('trait_exists') || !trait_exists($class))) {
if (!class_exists($class, false) && !interface_exists($class, false) && (!function_exists('trait_exists') || !trait_exists($class, false))) {
throw new \RuntimeException(sprintf('The autoloader expected class "%s" to be defined in file "%s". The file was found but the class was not in it, the class name or namespace probably has a typo.', $class, $file));
}
}
Expand Down

0 comments on commit cf4a91e

Please sign in to comment.