Skip to content

ReservedFunctionNames: ignore deprecated functions#917

Merged
wimg merged 1 commit intodevelopfrom
feature/911-ignore-deprecated-functions-by-design
Oct 16, 2019
Merged

ReservedFunctionNames: ignore deprecated functions#917
wimg merged 1 commit intodevelopfrom
feature/911-ignore-deprecated-functions-by-design

Conversation

@jrfnl
Copy link
Copy Markdown
Member

@jrfnl jrfnl commented Oct 4, 2019

Check the function docblock for a @deprecated tag and if found, bow out.

Includes unit tests.

Fixes #911

Check the function docblock for a `@deprecated` tag and if found, bow out.

Includes unit tests.

Fixes 911
@jrfnl jrfnl added Type: enhancement PR: quick merge PR only contains relatively simple changes PR: ready for review labels Oct 4, 2019
@jrfnl jrfnl added this to the 9.x Next milestone Oct 4, 2019
@jrfnl jrfnl requested a review from wimg October 4, 2019 20:27
@wimg wimg merged commit 949f3c6 into develop Oct 16, 2019
@wimg wimg deleted the feature/911-ignore-deprecated-functions-by-design branch October 16, 2019 21:04
@jrfnl jrfnl removed PR: ready for review PR: quick merge PR only contains relatively simple changes labels Oct 17, 2019
pento pushed a commit to WordPress/wordpress-develop that referenced this pull request Feb 13, 2026
…nd `__ngettext_noop()`.

Since PHPCompatibility 9.3.2, the `ReservedFunctionNames` sniff skips functions with a `@deprecated` tag.

Reference: [PHPCompatibility/PHPCompatibility#917 WPCS: ReservedFunctionNames: ignore deprecated functions].

Follow-up to [46290].

Props rodrigosprimo.
See #64627.

git-svn-id: https://develop.svn.wordpress.org/trunk@61641 602fd350-edb4-49c9-b593-d223f7449a82
markjaquith pushed a commit to markjaquith/WordPress that referenced this pull request Feb 18, 2026
…nd `__ngettext_noop()`.

Since PHPCompatibility 9.3.2, the `ReservedFunctionNames` sniff skips functions with a `@deprecated` tag.

Reference: [PHPCompatibility/PHPCompatibility#917 WPCS: ReservedFunctionNames: ignore deprecated functions].

Follow-up to [46290].

Props rodrigosprimo.
See #64627.
Built from https://develop.svn.wordpress.org/trunk@61641


git-svn-id: http://core.svn.wordpress.org/trunk@60952 1a063a9b-81f0-0310-95a4-ce76da25c4cd
jihaisse pushed a commit to jihaisse/wordpress-develop that referenced this pull request Feb 18, 2026
…nd `__ngettext_noop()`.

Since PHPCompatibility 9.3.2, the `ReservedFunctionNames` sniff skips functions with a `@deprecated` tag.

Reference: [PHPCompatibility/PHPCompatibility#917 WPCS: ReservedFunctionNames: ignore deprecated functions].

Follow-up to [46290].

Props rodrigosprimo.
See #64627.

git-svn-id: https://develop.svn.wordpress.org/trunk@61641 602fd350-edb4-49c9-b593-d223f7449a82
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.

ReservedFunctionNames: ignore deprecated methods by design

2 participants