mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-18 17:21:26 +08:00
Added more YII_ENV constants.
This commit is contained in:
@ -82,7 +82,7 @@ class ErrorHandler extends Component
|
||||
*/
|
||||
protected function renderException($exception)
|
||||
{
|
||||
if (Yii::$app instanceof \yii\console\Application || YII_ENV === 'test') {
|
||||
if (Yii::$app instanceof \yii\console\Application || YII_ENV_TEST) {
|
||||
echo Yii::$app->renderException($exception);
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user