Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,21 @@ parameters:
- identifier: missingType.property
- identifier: missingType.parameter
- identifier: missingType.return

# johnbillion/wp-compat checks every WordPress symbol against the WordPress 4.9
# baseline that wp-cli-tests configures, and reports anything newer.

# WordPress 6.0 and 5.3 only formalized the already documented `...$args` and
# `...$arg` parameters of `apply_filters()` and `do_action()` by adding them to the
# function signatures. Additional arguments were collected through `func_get_args()`
# before that, so passing them has always worked. Both identifiers already name one
# specific parameter of one specific function.
-
identifier: WPCompat.parameterNotAvailable.applyfilters.args
path: src/WP_Export_Query.php
-
identifier: WPCompat.parameterNotAvailable.doaction.arg
paths:
- src/WP_Export_Returner.php
- src/WP_Export_Split_Files_Writer.php
- src/WP_Export_XML_Over_HTTP.php