Skip to content

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Mar 9, 2025

we did not yet implement the feature requested in bug10717, but at least a bug was fixed which is mentioned in the phpstan/phpstan#10717 (comment)

@staabm staabm marked this pull request as ready for review March 9, 2025 07:51
@staabm
Copy link
Contributor Author

staabm commented Mar 9, 2025

//cc @VincentLanglet

@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

if ($country === 'fo' || $country === 'Faroese' || $country === 'Føroyskt') {
// foo
} else {
assertType('(bool|string)', $country);
Copy link
Contributor Author

@staabm staabm Mar 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here is the type assertion. everything else above is just a oversized array of data

@ondrejmirtes ondrejmirtes merged commit d7e46d2 into phpstan:2.1.x Mar 9, 2025
252 checks passed
@ondrejmirtes
Copy link
Member

Thank you.

@staabm staabm deleted the reg branch March 9, 2025 08:37
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.

3 participants