Commit ae302037 by Klimov Paul

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

parent 43a04d23
...@@ -66,7 +66,7 @@ class YiiRequirementChecker ...@@ -66,7 +66,7 @@ class YiiRequirementChecker
$requirements = require($requirements); $requirements = require($requirements);
} }
if (!is_array($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)) { if (!isset($this->result) || !is_array($this->result)) {
$this->result = array( $this->result = array(
......
<?php <?php
/** /**
* This is the Yii core requirements for the [[YiiRequirementChecker]] instance. * This is the Yii core requirements for the [[YiiRequirementChecker]] instance.
* These requirements are mandatory for any Yii application.
*/ */
return array( return array(
array( array(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment