Skip to content
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

Also support non-literal types in strict in_array() check #6419

Merged
merged 1 commit into from
Sep 4, 2021

Conversation

TysonAndre
Copy link
Contributor

@TysonAndre TysonAndre commented Sep 4, 2021

Modified approach to #6396 by orklah

Fixes #6333
Fixes #6317

Not very familiar with the approach taken here (in general for type assertions), but =null for an assertion seems to not work (strict equality), while null does.

Modified approach to vimeo#6396 by orklah

Fixes vimeo#6333

Co-Authored-By: orklah <ronan_morin@hotmail.com>
@orklah
Copy link
Collaborator

orklah commented Sep 4, 2021

Seems to be working 👍 I'll close mine

@weirdan weirdan merged commit b710aab into vimeo:master Sep 4, 2021
@weirdan
Copy link
Collaborator

weirdan commented Sep 4, 2021

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

in_array and TypeDoesNotContainNull False positive ParadoxicalCondition when using in_array()
3 participants