语法错误,意外的“解析器”(T_STRING),需要函数(T_FUNCTION)或常量(T_CONST)”,“异常”:“ParseError”,供应商/lcobucci/jwt/src/Configuration.php”,“行”:22
我安装了 PHP 8.0 和 composer v2.0。
该项目在本地使用 xampp 完美运行,但在 Ubuntu 20.04、Digtalocean 上的 nginx 配置中显示此错误
php jwt laravel-8
jwt ×1
laravel-8 ×1
php ×1