bug in query builder fo whereIn #54264
Unanswered
NimaAzizii
asked this question in
Ideas
Replies: 1 comment
-
The type hint for We could maybe add a null check to the start of the fn: if (is_null($values)) {
throw new InvalidArgumentException('In Values cannot be Null');
} but tbh, i expect such data check to happen before calling the whereIn anyways :> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Laravel Version
11.38.2
PHP Version
8.3
Database Driver & Version
No response
Description
In the
whereIn
method of the model, if the input value is set tonull
, an error occurs in thecount
function inside the method. Please either enforce a data type for the value parameter in the method's input and resolve the mentioned bug.Steps To Reproduce
Steps To Reproduce:
whereIn
method.null
as the value for thewhereIn
method.Expected Result:
The method should handle the
null
value gracefully or throw a meaningful exception.Actual Result:
An error occurs in the
count
function inside thewhereIn
method.Beta Was this translation helpful? Give feedback.
All reactions