Skip to content

Fix in_array non-empty-array type specification#1545

Merged
ondrejmirtes merged 1 commit intophpstan:1.8.xfrom
herndlm:fix-7684
Jul 25, 2022
Merged

Fix in_array non-empty-array type specification#1545
ondrejmirtes merged 1 commit intophpstan:1.8.xfrom
herndlm:fix-7684

Conversation

@herndlm
Copy link
Copy Markdown
Contributor

@herndlm herndlm commented Jul 25, 2022

Closes phpstan/phpstan#7684

"Unsimplifies" what I oversimplified in #1510, sorry :)

I did not get it at first, but it makes sense I suppose. My simplification only added non-empty-array to the new array type, but not the old one (which might be different than what we create manually inside the extension).

Also fixed the indentation of a block which was off..

@herndlm herndlm marked this pull request as ready for review July 25, 2022 12:21
@ondrejmirtes ondrejmirtes merged commit 7569092 into phpstan:1.8.x Jul 25, 2022
@ondrejmirtes
Copy link
Copy Markdown
Member

Thank you!

@herndlm herndlm deleted the fix-7684 branch July 25, 2022 12:27
@DaDeather
Copy link
Copy Markdown

Thank you 😀!

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.

False positive with in_array when being used in loops

3 participants