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/Integration/CachingTest: Do not access private properties through static #823

Merged
merged 1 commit into from
Apr 2, 2023

Conversation

jtojnar
Copy link
Contributor

@jtojnar jtojnar commented Mar 19, 2023

PHPStan will rightly complain:

Unsafe access to private property SimplePie\Tests\Fixtures\Cache\BaseCacheWithCallbacksMock::$touchCallback through static::…

It only works because there is no subclass. While at it, let’s make the class final.

…gh static

PHPStan will rightly complain:

    Unsafe access to private property SimplePie\Tests\Fixtures\Cache\BaseCacheWithCallbacksMock::$touchCallback through static::…

It only works because there is no subclass. While at it, let’s make the class final.
@jtojnar jtojnar mentioned this pull request Mar 19, 2023
@mblaney mblaney merged commit da32663 into simplepie:master Apr 2, 2023
@jtojnar jtojnar deleted the test-cache-fix-static branch April 2, 2023 04:23
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