-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan.neon
More file actions
22 lines (20 loc) · 890 Bytes
/
phpstan.neon
File metadata and controls
22 lines (20 loc) · 890 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#$ vendor/bin/phpstan analyze
includes:
- vendor/szepeviktor/phpstan-wordpress/extension.neon
parameters:
level: 5
inferPrivatePropertyTypeFromConstructor: true
paths:
- pressody-retailer.php
- src/
bootstrapFiles:
- vendor/php-stubs/woocommerce-stubs/woocommerce-stubs.php
- vendor/htmlburger/carbon-fields/core/functions.php
ignoreErrors:
# Uses func_get_args()
- '#^Function apply_filters(_ref_array)? invoked with [34567] parameters, 2 required\.$#'
# Uses method name string.
- '#^Parameter \#2 \$method of method Cedaro\\WP\\Plugin\\AbstractHookProvider::add_action\(\) expects callable\(\)#'
# Uses method name string.
- '#^Parameter \#2 \$method of method Cedaro\\WP\\Plugin\\AbstractHookProvider::add_filter\(\) expects callable\(\)#'
# See full example in phpstan-full.neon