-
Notifications
You must be signed in to change notification settings - Fork 74
Expand file tree
/
Copy pathphpstan.neon.dist
More file actions
20 lines (19 loc) · 1.03 KB
/
phpstan.neon.dist
File metadata and controls
20 lines (19 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
parameters:
level: 8
treatPhpDocTypesAsCertain: false
paths:
- wp-multi-network/includes
- wpmn-loader.php
scanFiles:
- %rootDir%/../../php-stubs/wp-cli-stubs/wp-cli-stubs.php
- %rootDir%/../../php-stubs/wp-cli-stubs/wp-cli-commands-stubs.php
#- %rootDir%/../../php-stubs/wp-cli-stubs/wp-cli-i18n-stubs.php
#- %rootDir%/../../php-stubs/wp-cli-stubs/wp-cli-tools-stubs.php
ignoreErrors:
# WP_Network::$blog_id is a private property that can be accessed via magic methods.
- '/^Access to an undefined property WP_Network::\$blog_id\.$/'
# WP_CLI\Fetchers\User::get() returns WP_User without root namespace.
- '/^Cannot access property \$ID on WP_CLI\\Fetchers\\WP_User\|false\.$/'
# Backward compatibility with old method of passing arguments.
# Associative CLI arguments. Passed by reference.
- '/^Parameter \&\$assoc_args by-ref type of method WP_MS_Network_Command::get_formatter\(\) expects array<string, mixed>, array given\.$/'