Skip to content

Filters/ExactMatch: remove the deprecated getBlacklist() and getWhitelist() methods #984

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

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Apr 14, 2025

Description

  • Removes the deprecated getBlacklist() and getWhitelist() methods.
  • Makes the getDisallowedFiles() and getAllowedFiles() replacement methods abstract.

Suggested changelog entry

Removed:

  • The abstract PHP_CodeSniffer\Filters\ExactMatch::getBlacklist() and PHP_CodeSniffer\Filters\ExactMatch::getWhitelist() methods.
    • These have been replaced by the ExactMatch::getDisallowedFiles() and ExactMatch::getAllowedFiles() methods.

Related issues/external references

Related to #198
Fixes #199

…itelist()` methods

* Removes the deprecated `getBlacklist()` and `getWhitelist()` methods.
* Makes the `getDisallowedFiles()` and `getAllowedFiles()` replacement methods `abstract`.

Related to 198
Fixes 199
@jrfnl jrfnl merged commit d27a8c8 into 4.x Apr 14, 2025
54 checks passed
@jrfnl jrfnl deleted the phpcs-4.0/feature/199-filter-remove-deprecated-whitelist-blacklist-methods branch April 14, 2025 16:01
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.

2 participants