Doc comments and error messages for "YiiRequirementChecker" have been adjusted.

This commit is contained in:
Klimov Paul
2013-05-11 20:12:58 +03:00
parent 43a04d237a
commit ae302037de
2 changed files with 2 additions and 1 deletions

View File

@@ -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(

View File

@@ -1,6 +1,7 @@
<?php
/**
* This is the Yii core requirements for the [[YiiRequirementChecker]] instance.
* These requirements are mandatory for any Yii application.
*/
return array(
array(