Skip to content

Fix access to private static properties #137

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

Merged
merged 1 commit into from
Apr 18, 2017

Conversation

stof
Copy link
Contributor

@stof stof commented Apr 5, 2017

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Related tickets n/a
Documentation n/a

Why?

Using late static binding to access private static properties is wrong, as child classes are not allowed to access them. This would lead to a fatal error when using a child class.

Using late static binding to access private properties is wrong, as child
classes are not allowed to access them.
@Nyholm Nyholm self-requested a review April 5, 2017 15:39
@stof
Copy link
Contributor Author

stof commented Apr 5, 2017

Note that Scrutinizer knows about this kind of issues and reported it on your project already.

@fbourigault fbourigault self-requested a review April 18, 2017 07:22
@fbourigault fbourigault merged commit 19ccef2 into php-http:master Apr 18, 2017
@fbourigault
Copy link
Contributor

Thank you @stof.

@stof stof deleted the private_static branch April 18, 2017 14:00
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.

4 participants