From ae302037deaae2f51d12cdaf7db2a2f9e3e20c31 Mon Sep 17 00:00:00 2001 From: Klimov Paul Date: Sat, 11 May 2013 20:12:58 +0300 Subject: [PATCH] Doc comments and error messages for "YiiRequirementChecker" have been adjusted. --- yii/requirements/YiiRequirementChecker.php | 2 +- yii/requirements/yiirequirements.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 @@