Skip to content

Commit 33cd8a6

Browse files
committed
Remove obsolete get_term_by() PHPStan ignore entry
johnbillion/wp-compat 2.0.1 no longer reports the `$field` parameter of get_term_by() as version-gated, so the ignore entry working around that false positive is now unmatched and fails the analysis.
1 parent 77d6472 commit 33cd8a6

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

phpstan.neon.dist

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -99,16 +99,6 @@ parameters:
9999
message: '#^(has_blocks|parse_blocks|render_block)\(\) is only available since WordPress version 5\.0\.0\.$#'
100100
path: src/Post_Block_Command.php
101101

102-
# Only the uppercase `'ID'` alias for the `$field` parameter of `get_term_by()`
103-
# is WordPress 5.5+. These call sites pass `'id'`, `'term_id'` or `'slug'`, all
104-
# supported since WordPress 2.3.
105-
-
106-
identifier: WPCompat.parameterNotAvailable.gettermby.field
107-
paths:
108-
- src/Menu_Item_Command.php
109-
- src/Term_Command.php
110-
- src/WP_CLI/CommandWithTerms.php
111-
112102
# WordPress 6.0 only formalized the already documented `...$args` parameter of
113103
# `apply_filters()` by adding it to the function signature. Additional arguments
114104
# were collected through `func_get_args()` before that.

0 commit comments

Comments
 (0)