diff --git a/yii/requirements/YiiRequirementChecker.php b/yii/requirements/YiiRequirementChecker.php index 43401c9..1912ba7 100644 --- a/yii/requirements/YiiRequirementChecker.php +++ b/yii/requirements/YiiRequirementChecker.php @@ -66,7 +66,7 @@ class YiiRequirementChecker $requirements = require($requirements); } if (!is_array($requirements)) { - $this->usageError("Requirements must be an array!"); + $this->usageError('Requirements must be an array, "'.gettype($requirements).'" has been given!'); } if (!isset($this->result) || !is_array($this->result)) { $this->result = array( diff --git a/yii/requirements/yiirequirements.php b/yii/requirements/yiirequirements.php index 9d840a9..96ae285 100644 --- a/yii/requirements/yiirequirements.php +++ b/yii/requirements/yiirequirements.php @@ -1,6 +1,7 @@