From 6f526597536ac4d7e0ef763be929115cf8170564 Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Tue, 22 Oct 2013 13:25:26 +0200 Subject: [PATCH] no need to check for trait_exists in autoloader anymore --- framework/yii/BaseYii.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/framework/yii/BaseYii.php b/framework/yii/BaseYii.php index 49499fb..ad93d42 100644 --- a/framework/yii/BaseYii.php +++ b/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"); } }