PHP/POSIXFunctions: deprecate the sniff #2616
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
β ππ» This PR should only be merged after PR WordPress/wpcs-docs#153 has been approved and merged!
PHP/POSIXFunctions: deprecate the sniff
The
WordPress.PHP.POSIXFunctionssniff is dated and no longer relevant.With this in mind, this commit deprecates the sniff.
Additionally, the sniff is removed/excluded from the WPCS rulesets in a way that users who do not directly reference the sniff will not see any deprecation notices.
Users who reference the sniff from within their own PHPCS rulesets, will see the deprecation notice.
CONTRIBUTING: update the test writing tutorial
... to no longer use the
POSIXFunctionssniff as an example as that sniff will be removed in WPCS 4.0.0 (and is now deprecated).Suggested changelog entry
Deprecated
WordPress.PHP.POSIXFunctionssniff as it is no longer relevant.Related issues/external references
Fixes #2612
Related to WordPress/wpcs-docs#153