#5408 Gii console : Some errors occurred while generating the files

https://github.com/yiisoft/yii2/issues/5408