php - 安装 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"
谢谢!
解决方案
我猜它也是 PHP 版本,因为 Stack Trace 显示了最新版本 8 中的联合类型语法 ( https://php.watch/versions/8.0/union-types ) 的语法错误。
推荐阅读
- c# - 如何使用 C# 读取位于 sharepoint 网站中的 CSV 文件?
- json - 如何从双重嵌套响应中解析 JSON
- ios - 是否有任何用于在 iOS 中使用 React Native 录制屏幕和语音的插件
- javascript - 浏览器 javascript 可以监听路由/url吗?
- c# - C# 子进程在一段时间后空闲
- sql-server - 如何从另一个存储过程调用存储过程
- mysql - MYSQL - 使用 Group By 和 Order By 和连接
- ruby - 如何通过 SOCKS 代理使用 Net::SMTP?
- c++ - 使用散列在 3sum 问题中获取重复项
- powershell - 从特定视图而不是所有项目中检索 list.items