问题
PHP升级7.2后,Yii 2.0.12 版本由于类命名约束问题会产生如下问题:
1 | Fatal error: Cannot use 'Object' as class name as it is reserved in /Users/uiste/www/my_project/mike-app/vendor/yiisoft/yii2/base/Object.php on line 77 |
升级方法
1 | ➜ mike-app git:(version-update) composer install |
浏览器打开:
https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+localhost.localdomain+2018-03-25+1945
登录github账号 生成token ,在命令行输入即可 token
继续1
composer updated