-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pluck will error on null value #216
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Pluck uses
isset
to check for the existence of a key.isset
will not returntrue
if the associated value is null which causespluck
to error.This should use
array_key_exists
instead. (property_exists
for objects)Example:
Outputs:
The expected output would be:
Here is the object version which exhibits the same behavior:
The text was updated successfully, but these errors were encountered: