[5.4] Adds is_null check to Eloquent Builder callScope#19381
[5.4] Adds is_null check to Eloquent Builder callScope#19381taylorotwell merged 1 commit intolaravel:5.4from alihamze:5.4
Conversation
|
is this fix possible to be port over lower versions of laravel? *currently encountering this error on version |
|
Maybe better just change |
|
It would be fixed in L5.2.* as well? Yesterday upgraded to PHP7.2 and now production service is broken. Please let me know. Thank you. |
|
Yes thats only one problem which i had after upgrading to 7.2 |
|
How far back to go? I wouldn't expect unsupported versions of a framework to continue working on each iteration of PHP. However, if it's a simple fix, maybe a PR would be accepted. |
fix null bug; laravel/framework#19381
|
@taylorotwell Can we commit this to 5.2 and 5.3 branches also? It will open those up to PHP 7.2 as well. |
This fixes #19380 by adding an
is_nullcheck before callingcount()and defaulting to 0 if it isnull.