Browse Source

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

tags/2.0.0-beta
Klimov Paul 12 years ago
parent
commit
ae302037de
  1. 2
      yii/requirements/YiiRequirementChecker.php
  2. 1
      yii/requirements/yiirequirements.php

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

1
yii/requirements/yiirequirements.php

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

Loading…
Cancel
Save