简体   繁体   English

compact():未定义变量:运算符 - Laravel

[英]compact(): Undefined variable: operator - Laravel

I am having this error on my Laravel project.我的 Laravel 项目出现此错误。 I already tried to change the version of my php but did not work.我已经尝试更改我的 php 的版本,但没有奏效。

I currently using:我目前使用:

Php version is PHP 7.3.11

Laravel version 5.5.34

Here is the error:这是错误:

在此处输入图像描述

Thanks for the response.感谢您的回复。

You should upgrade your Laravel version;您应该升级您的 Laravel 版本; latest 5.5 is 5.5.48.最新的 5.5 是 5.5.48。 This was fixed some time around 5.5.41.这是在 5.5.41 左右的某个时间修复的。

laravel/framework github - [5.5] Remove undefined variable from compact #25193 laravel/framework github - [5.5] 从紧凑中删除未定义的变量 #25193

You should degrade your php version to 7.1.您应该将 php 版本降级到 7.1。

I was also facing the same issue.我也面临同样的问题。 You should degrade your php version to 7.1.您应该将 php 版本降级到 7.1。 This works for me hope it will also works for you.这对我有用,希望它也对你有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM