New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query builder: undefined variable $operator #25180

Closed
janisblaus opened this Issue Aug 11, 2018 · 4 comments

Comments

Projects
None yet
3 participants
@janisblaus
Copy link

janisblaus commented Aug 11, 2018

  • Laravel Version: 5.5 and 5.6
  • PHP Version: 7.3

Description:

https://github.com/laravel/framework/blob/5.6/src/Illuminate/Database/Query/Builder.php#L1392 undefined variable $operator

@themsaid

This comment has been minimized.

Copy link
Member

themsaid commented Aug 11, 2018

Please share the full exception trace as well as replication steps.

@janisblaus

This comment has been minimized.

Copy link
Author

janisblaus commented Aug 11, 2018

Can't you see that it's missing there by just taking a look to that method?

It comes from using whereExists, operator variable is not defined, therefore an exception is thrown

@themsaid

This comment has been minimized.

Copy link
Member

themsaid commented Aug 11, 2018

Ah seem like you're using PHP7.3 that's why, we haven't adapted laravel/framework for PHP7.3 yet, will be handled when the time comes.

@themsaid themsaid closed this Aug 11, 2018

@lffruhling

This comment has been minimized.

Copy link

lffruhling commented Oct 27, 2018

@themsaid thank you, it was over 1:30 hours, until I found your comment and check that my ubuntu had updated php to version 7.3. I returned the php to version 7.2 and it worked for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment