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

Allowing custom exclusion for StaticAccess by extending the class #737

Conversation

ondrejfuhrer
Copy link
Contributor

Type: feature / refactoring
Breaking change: no

Description / Reason

In a project we need a custom exclusion rules for this rule. Looking at the code it doesn't allow easy extension so I would like to enable that.

Actions taken

Extracted exclusion into a protected function which enabled extending this class and customise the functionality.

@kylekatarnls
Copy link
Member

Thanks! That's a nice extension we should try to apply to other rules.

@kylekatarnls kylekatarnls modified the milestones: 2.8.2, 2.8.3 Feb 25, 2020
@kylekatarnls kylekatarnls merged commit c7618e4 into phpmd:master Feb 25, 2020
@ondrejfuhrer ondrejfuhrer deleted the ondrejfuhrer-static-access-allow-custom-exclusion branch February 25, 2020 10:52
@kylekatarnls kylekatarnls modified the milestones: 2.8.3, 2.9.0 May 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

3 participants