-
-
Save jahid32/0657cb16f446c505ff9f65530bcd8104 to your computer and use it in GitHub Desktop.
Laravel 5.3 Count problem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Illuminate/Database/Eloguent/Builder.php | |
// Line 1231 | |
- $originalWhereCount = count($query->wheres); | |
+ $originalWhereCount = is_null($query->wheres) ? 0 : count($query->wheres); | |
// Line 1277 | |
- return count($query->wheres) > $originalWhereCount; | |
+ return (is_null($query->wheres) ? 0 : count($query->wheres)) > $originalWhereCount; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment