Skip to content

Remove dead code in StrContainingTypeSpecifyingExtension#5626

Merged
staabm merged 1 commit intophpstan:2.1.xfrom
staabm:uplower
May 10, 2026
Merged

Remove dead code in StrContainingTypeSpecifyingExtension#5626
staabm merged 1 commit intophpstan:2.1.xfrom
staabm:uplower

Conversation

@staabm
Copy link
Copy Markdown
Contributor

@staabm staabm commented May 10, 2026

No description provided.

Comment on lines -89 to -94
if ($haystackType->isLiteralString()->yes()) {
$accessories[] = new AccessoryLiteralStringType();
}
if ($haystackType->isNumericString()->yes()) {
$accessories[] = new AccessoryNumericStringType();
}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

while looking into whether we are missing uppercase/lowercase handling here, I realized this code is not necessary at all

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I opened phpstan/phpstan#14594 btw

@staabm staabm requested a review from VincentLanglet May 10, 2026 08:12
@staabm staabm merged commit c3624fe into phpstan:2.1.x May 10, 2026
708 of 711 checks passed
@staabm staabm deleted the uplower branch May 10, 2026 08:45
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