Skip to content

Conversation

VincentLanglet
Copy link
Contributor

@VincentLanglet VincentLanglet commented Oct 26, 2024

Copy link
Contributor Author

@VincentLanglet VincentLanglet Oct 26, 2024

Choose a reason for hiding this comment

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

We will still need to check every part to see if it's a lowercase string.

I'm unsure I should change this to

if (count($resultType->getConstantStrings()) === 0 && $resultType->isLowercaseString()->no()) {

to avoid a similar bug to come back if we introduce another string Accessory.

@ondrejmirtes ondrejmirtes merged commit e3ee899 into phpstan:1.12.x Nov 6, 2024
451 checks passed
@ondrejmirtes
Copy link
Member

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.

2 participants