Skip to content

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Jan 3, 2026

No description provided.

continue;
}

foreach ($catchTypes as $catchTypeIndex => $catchTypeItem) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

unused variable $catchTypeIndex

Copy link
Member

Choose a reason for hiding this comment

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

Slevomat CS typically catches this, can you figure out why it doesn't in this case, maybe create a failign test for slevomat/coding-standard?

'blocks',
];

foreach ($keys as $key) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

unused variable $key

$this->acceptUppercaseString($string);
$this->acceptUppercaseString($uppercaseString);
$this->acceptUppercaseString($numericString);
$this->acceptUppercaseString($nonEmptyLowercaseString);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

undefined variable

@staabm staabm marked this pull request as ready for review January 3, 2026 10:15
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

continue;
}

foreach ($catchTypes as $catchTypeIndex => $catchTypeItem) {
Copy link
Member

Choose a reason for hiding this comment

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

Slevomat CS typically catches this, can you figure out why it doesn't in this case, maybe create a failign test for slevomat/coding-standard?

@ondrejmirtes ondrejmirtes merged commit d3d6752 into phpstan:2.1.x Jan 3, 2026
635 of 644 checks passed
@staabm staabm deleted the testfix branch January 3, 2026 11:56
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