Framework: Query builder: undefined variable $operator

Created on 11 Aug 2018  路  4Comments  路  Source: laravel/framework

  • 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

Most helpful comment

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.

All 4 comments

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

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

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 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!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shopblocks picture shopblocks  路  3Comments

CupOfTea696 picture CupOfTea696  路  3Comments

RomainSauvaire picture RomainSauvaire  路  3Comments

ghost picture ghost  路  3Comments

progmars picture progmars  路  3Comments