Skip to content

Merge AssertNotWpErrorTypeSpecifyingExtension into AssertWpErrorTypeSpecifyingExtension#291

Merged
szepeviktor merged 1 commit intoszepeviktor:2.xfrom
IanDelMar:assertwperror
Jul 11, 2025
Merged

Merge AssertNotWpErrorTypeSpecifyingExtension into AssertWpErrorTypeSpecifyingExtension#291
szepeviktor merged 1 commit intoszepeviktor:2.xfrom
IanDelMar:assertwperror

Conversation

@IanDelMar
Copy link
Copy Markdown
Contributor

This PR consolidates the AssertNotWpErrorTypeSpecifyingExtension into the AssertWpErrorTypeSpecifyingExtension in order to eliminate code duplication and simplify the extension logic.

Additionally, the call to strtolower() in the isMethodSupported() method was removed, as its purpose was unclear and appeared unnecessary. If anyone is aware of the reason for its inclusion, I can reintroduce it and add a comment explaining its purpose.

All existing tests continue to pass.

@szepeviktor
Copy link
Copy Markdown
Owner

szepeviktor commented Jul 11, 2025

I wish I knew what phpstan-wordpress is!

@szepeviktor szepeviktor merged commit a2ad171 into szepeviktor:2.x Jul 11, 2025
1 of 2 checks passed
@IanDelMar IanDelMar deleted the assertwperror branch July 11, 2025 17:43
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