Skip to content

Conversation

@jrfnl
Copy link
Member

@jrfnl jrfnl commented Sep 16, 2025

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.POSIXFunctions sniff 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 POSIXFunctions sniff as an example as that sniff will be removed in WPCS 4.0.0 (and is now deprecated).

Suggested changelog entry

Deprecated

  • The WordPress.PHP.POSIXFunctions sniff as it is no longer relevant.

Related issues/external references

Fixes #2612

Related to WordPress/wpcs-docs#153

The `WordPress.PHP.POSIXFunctions` sniff 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.

Fixes 2612

Related to WordPress/wpcs-docs 153
... to no longer use the `POSIXFunctions` sniff as an example as that sniff will be removed in WPCS 4.0.0 (and is now deprecated).
@dingo-d dingo-d merged commit cb5e9e7 into develop Sep 17, 2025
40 checks passed
@dingo-d dingo-d deleted the feature/2612-deprecate-posix-sniff branch September 17, 2025 07:04
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.

Deprecate the WordPress.PHP.PosixFunctions sniff

5 participants