首页 > 解决方案 > 安装 symfony 框架

问题描述

我刚开始使用 symfony 框架,我安装环境没有问题,但是当我第一次运行 symfony 服务器时: symfony server: start 我收到这样的错误

[Web server] [07-Apr -2021 06:27:42 Europe / Berlin] 2021-04-07T06: 27: 42 + 02: 00 [critical] Error not caught: syntax error, "|" unexpected, expected variable (T_VARIABLE)
and this |ERROR | SERVER GET (500) / ip="127.0.0.1"

这是获得的错误需要帮助 ,我不知道该怎么办在此处输入图像描述在此处输入图像描述

谢谢!

标签: phpmysqlsymfonyxampp

解决方案


我猜它也是 PHP 版本,因为 Stack Trace 显示了最新版本 8 中的联合类型语法 ( https://php.watch/versions/8.0/union-types ) 的语法错误。


推荐阅读