PHP7.2中Yii2核心类Object报错

日期: 2018-02-04 分类: geeks

用docker搭建php服务器时,发现yii2核心类Object报错了。此时用的php版本是当前最新版的7.2

Fatal error: Cannot use ‘Object’ as class name as it is reserved in /var/www/yii/vendor/yiisoft/yii2/base/Object.php on line 77