|
@@ -157,7 +157,7 @@ class Qii extends Application
|
|
* @param Int|String $code
|
|
* @param Int|String $code
|
|
* @return Bool
|
|
* @return Bool
|
|
*/
|
|
*/
|
|
- public static function setError($condition, $line = 0, $code, $args = null, $msg = '')
|
|
|
|
|
|
+ public static function setError($condition, $line = 0, $code = 0, $args = null, $msg = '')
|
|
{
|
|
{
|
|
return call_user_func_array(array('\Qii\Exceptions\Error', 'setError'), func_get_args());
|
|
return call_user_func_array(array('\Qii\Exceptions\Error', 'setError'), func_get_args());
|
|
}
|
|
}
|