-
Notifications
You must be signed in to change notification settings - Fork 2
/
phpstan.neon.dist
31 lines (31 loc) · 1.09 KB
/
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
23
24
25
26
27
28
29
30
31
parameters:
checkMissingIterableValueType: false
customRulesetUsed: false
dynamicConstantNames:
- WP_CLI
level: max
bootstrapFiles:
- vendor/php-stubs/woocommerce-stubs/woocommerce-stubs.php
- tests/phpstan/bootstrap.php
paths:
- src/
scanDirectories:
- wp-content/
scanFiles:
- vendor/php-stubs/wp-cli-stubs/wp-cli-stubs.php
ignoreErrors:
-
message: '#Access to protected property WC_Order::\$id\.#'
path: %currentWorkingDirectory%/src/WooCommerce.php
-
message: '#Access to protected property WC_Subscription::\$order\.#'
path: %currentWorkingDirectory%/src/WooCommerce.php
-
message: '#Access to an undefined property WC_Order::\$(order_date|order_key|order_total|shipping_total|status|total_tax)\.#'
path: %currentWorkingDirectory%/src/WooCommerce.php
-
message: '#Access to an undefined property WC_Subscription::\$payment_gateway\.#'
path: %currentWorkingDirectory%/src/WooCommerce.php
-
message: '#Strict comparison using === between null and (int|float|string) will always evaluate to false\.#'
path: %currentWorkingDirectory%/src/WooCommerce.php