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

Use upstream rule to check for methods using a double underscore. #173

Merged

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Aug 15, 2016

Relates to: #64

the sniff should report if there any class method that begin with a double-underscore but which are not one of the magic methods as defined by PHP, as these are reserved for future use. Their presence may result in code breakage in future PHP versions.

The upstream sniff covers this well and as this particular check does not need the supportsAbove() or supportsBelow() methods, there is no need to duplicate code maintenance efforts.

Relates to: PHPCompatibility#64

> the sniff should report if there any class method that begin with a double-underscore but which are not one of the magic methods as defined by PHP, as these are reserved for future use. Their presence may result in code breakage in future PHP versions.
@wimg wimg merged commit 51d5dbf into PHPCompatibility:master Aug 15, 2016
@jrfnl jrfnl deleted the feature/issue-64-double-underscore-methods branch August 15, 2016 22:45
@jrfnl jrfnl added this to the 7.0.3 milestone Apr 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants