wp-cli-move/phpstan.neon.dist
Nicolas Lemoine b13b4fce13 fix: phpstan errors on PHP 8.5
- parse URL components individually, the array shape returned by the
  full parse is typed differently across PHP versions
- mark version-dependent ignore patterns with reportUnmatched: false,
  they only match on some PHP/wp-cli combinations
2026-06-10 21:00:17 +02:00

19 lines
744 B
Text

parameters:
level: 8
editorUrl: 'vscode://file/%%file%%:%%line%%'
paths:
- command.php
- src/
scanFiles:
- %rootDir%/../../php-stubs/wordpress-stubs/wordpress-stubs.php
scanDirectories:
- %rootDir%/../../wp-cli/wp-cli
ignoreErrors:
-
message: '#Parameter \#[0-9]+ \$cmd of function WP_CLI\\Utils\\esc_cmd expects array<string>, string given.#'
identifier: argument.type
reportUnmatched: false
-
message: '#Parameter \#[0-9]+ \$assoc_args of function WP_CLI\\Utils\\assoc_args_to_str expects array<string, string>, array<string, string\|true> given.#'
identifier: argument.type
reportUnmatched: false