Skip to content

Fixed comparison of empty array with a scalar type#1650

Merged
ondrejmirtes merged 1 commit intophpstan:1.8.xfrom
staabm:empty-array
Aug 25, 2022
Merged

Fixed comparison of empty array with a scalar type#1650
ondrejmirtes merged 1 commit intophpstan:1.8.xfrom
staabm:empty-array

Conversation

@staabm
Copy link
Copy Markdown
Contributor

@staabm staabm commented Aug 25, 2022

extracted the first commit of #1640 into a separate PR, as it is not coupled to looseCompare and fixes a bug/type on its own.

the tests added with his PR represent the comparison table from https://www.php.net/manual/en/types.comparisons.php based on constant type comparisons

@staabm staabm marked this pull request as ready for review August 25, 2022 09:01
@ondrejmirtes
Copy link
Copy Markdown
Member

Needs rebase because of a conflict.

@staabm
Copy link
Copy Markdown
Contributor Author

staabm commented Aug 25, 2022

rebased

@ondrejmirtes ondrejmirtes merged commit 3dffa19 into phpstan:1.8.x Aug 25, 2022
@ondrejmirtes
Copy link
Copy Markdown
Member

Thank you!

@staabm staabm deleted the empty-array branch August 25, 2022 15:47
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.

2 participants