-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathphpstan.neon.dist
More file actions
25 lines (23 loc) · 979 Bytes
/
Copy pathphpstan.neon.dist
File metadata and controls
25 lines (23 loc) · 979 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
parameters:
level: 9
paths:
- src
- super-admin-command.php
scanDirectories:
- vendor/wp-cli/wp-cli/php
scanFiles:
- vendor/php-stubs/wordpress-stubs/wordpress-stubs.php
treatPhpDocTypesAsCertain: false
ignoreErrors:
- 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 5.3 only formalized the already documented `...$arg` parameter of
# `do_action()` by adding it to the function signature. Additional arguments were
# collected through `func_get_args()` before that, so passing the user ID to
# `grant_super_admin` and friends has always worked. The identifier already names one
# specific parameter of one specific function.
-
identifier: WPCompat.parameterNotAvailable.doaction.arg
path: src/Super_Admin_Command.php