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

Add is_class_property() utility method and implement use of this and the other two new utility methods #1092

Merged
merged 1 commit into from
Aug 5, 2017

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Aug 5, 2017

PR #1089 introduced two new utility methods to the WordPress\Sniff class: is_class_constant() and valid_direct_scope().

This PR introduces one additional utility method is_class_property() and implements the use of this and the other two methods in other places in the code where appropriate (other than where they were originally introduced for).

These utility methods improve the accuracy of the scope detection.

…d the other two new utility methods.

PR 1089 introduced two new utility methods to the `WordPress\Sniff` class: `is_class_constant()` and `valid_direct_scope()`.

This PR introduces one additional utility method `is_class_property()` and implements the use of this and the other two methods in other places in the code where appropriate (other than where they were originally introduced for).
@jrfnl jrfnl added this to the 0.14.0 milestone Aug 5, 2017
@GaryJones GaryJones merged commit 5e185e2 into develop Aug 5, 2017
@GaryJones GaryJones deleted the feature/use-new-scope-utility-methods branch August 5, 2017 22:38
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.

3 participants