forked from pantheon-systems/wp-saml-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon.dist
22 lines (21 loc) · 885 Bytes
/
phpstan.neon.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#$ composer require --dev php-stubs/wp-cli-stubs szepeviktor/phpstan-wordpress
includes:
- vendor/szepeviktor/phpstan-wordpress/extension.neon
parameters:
level: 5
inferPrivatePropertyTypeFromConstructor: true
scanFiles:
- vendor/php-stubs/wp-cli-stubs/wp-cli-stubs.php
paths:
- wp-saml-auth.php
- inc/
earlyTerminatingMethodCalls:
OneLogin\Saml2\Auth:
- login
ignoreErrors:
# Uses func_get_args()
- '#^Function apply_filters(_ref_array)? invoked with [34567] parameters, 2 required\.$#'
# WP-CLI PHPDoc problem
- '#^Parameter \#2 \$callable of static method WP_CLI::add_command\(\) expects callable\(\): mixed,#'
# No callback for add_settings_section()?
- '#^Parameter \#3 \$callback of function add_settings_section expects callable\(\): mixed, null given\.$#'