Browse Source

no need to check for trait_exists in autoloader anymore

tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
6f52659753
  1. 3
      framework/yii/BaseYii.php

3
framework/yii/BaseYii.php

@ -335,8 +335,7 @@ class BaseYii
include($classFile);
if (YII_DEBUG && !class_exists($className, false) && !interface_exists($className, false) &&
(!function_exists('trait_exists') || !trait_exists($className, false))) {
if (YII_DEBUG && !class_exists($className, false) && !interface_exists($className, false) && !trait_exists($className, false)) {
throw new UnknownClassException("Unable to find '$className' in file: $classFile");
}
}

Loading…
Cancel
Save