Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: Do not use magic method for testing protected methods #824

Merged
merged 1 commit into from
Apr 2, 2023

Conversation

jtojnar
Copy link
Contributor

@jtojnar jtojnar commented Mar 19, 2023

PHPStan will not know about those and complain:

Call to protected static method change_encoding_mbstring() of class SimplePie\Misc.
Call to protected static method change_encoding_iconv() of class SimplePie\Misc.
Call to protected static method change_encoding_uconverter() of class SimplePie\Misc.

We could use @method PHPDoc annotation but at this point explicit methods are not that much longer.

PHPStan will not know about those and complain:

    Call to protected static method change_encoding_mbstring() of class SimplePie\Misc.
    Call to protected static method change_encoding_iconv() of class SimplePie\Misc.
    Call to protected static method change_encoding_uconverter() of class SimplePie\Misc.

We could use `@method` PHPDoc annotation but at this point explicit methods are not that much longer.
@mblaney mblaney merged commit 802e35f into simplepie:master Apr 2, 2023
@jtojnar jtojnar deleted the test-no-magic-misc branch April 2, 2023 04:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants