Skip to content

Conversation

@IanDelMar
Copy link
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
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