我正在用yii2开发一个rest api web服务。作为对localhost上json的响应,json的一个空对象结束对我的响应。并在主机上显示错误的json结尾。on line 53. in /home/factorap/public_html/vendor/yiisoft/yii2/web/Response.php:366#0 /home/factorap/public_html&
我遵循的步骤,2 - Use composer to install the app alongwith dependencies(Yii): phperror: syntax error, unexpected '[', expecting ')' in D:\xampp\htdocs\my_yii2_trial\vendor\yiisoft\yii2\yii\Yii.php on line 25
有谁能帮我解决这个问题吗?