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

Minor refactor of the NewConstVisibility sniff. #423

Merged
merged 1 commit into from
May 5, 2017

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented May 4, 2017

Part of a review to see which sniffs would benefit from using the new isClassProperty() and isClassConstant() methods as introduced in #391 and #393.

Includes additional unit tests.

* Use the new `isClassConstant()` utility method.
* Bow out early if not testing for PHP < 7.1 (was originally done later as some "debug" checks were slated to go in and didn't)

Includes additional unit tests.
@jrfnl jrfnl added this to the 7.1.4 milestone May 4, 2017
@jrfnl jrfnl requested a review from wimg May 4, 2017 23:23
@wimg wimg merged commit f8c0338 into master May 5, 2017
@jrfnl jrfnl deleted the feature/implement-isclassconstant-1 branch May 5, 2017 21:50
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