Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
[5.8] Argument 1 passed to Illuminate\Database\Query\Builder::cleanBindings() must be of the type array, null given #28251
Just this morning upgraded from 5.8.11 to 5.8.12 which completely broke my application on the wherePivot part.
$variable = $user->books()->wherePivot('owner', true)->findOrFail($id);
$variable = $user->books()->wherePivot('owner', '=', true)->findOrFail($id);
Has this been done intentionally? I cannot find anything regarding this change inside the core update. My code has not changed since the upgrade from 5.8.11 -> 5.8.12
It seems to me like a unintentional change, because it's not regarding every other where statement where it's just assumed that '=' is the operator if no operator is specified. Could this possibly be related to the changes made to the where here: #28192