Cannot use yii\base\Object as Object because 'Object' is a special class name yii2 advance

前端 未结 3 1566
慢半拍i
慢半拍i 2021-01-13 19:59

I just bougth a stronger pc, installed composer and wanted to continue my project on it but when I use gii it give me this error. How can I fix it ? Why am I getting it ? Th

3条回答
  •  执笔经年
    2021-01-13 20:41

    solved. since 2.0.13, the class name Object is invalid since PHP 7.2, use [[BaseObject]] instead. So in the vendor/yiisoft/yii2-gii/CodeFile.php just had to change Object to BaseObject.

提交回复
热议问题