Skip to content

Conversation

@browner12
Copy link
Contributor

this change helps clarify usage of the where(), whereNull(), and whereNotNull() methods with a null value.

discourage the use of $collection->where('field', '!=', null) because it will possibly cause unexpected results with "nully" values.

show more values that are "nully" and how they will be treated with the strict check.

this change helps clarify usage of the `where()`, `whereNull()`, and `whereNotNull()` methods with a `null` value. discourage the use of `$collection->where('field', '!=', null)` because it will possibly cause unexpected results with "nully" values. show more values that are "nully" and how they will be treated with the strict check.
@taylorotwell taylorotwell merged commit 91237ee into laravel:12.x Sep 17, 2025
@browner12 browner12 deleted the AB-collection-where-null branch September 17, 2025 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants