forked from woocommerce/woocommerce-gateway-amazon-pay
-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpstan.neon
29 lines (28 loc) · 1.02 KB
/
phpstan.neon
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
parameters:
level: 3
treatPhpDocTypesAsCertain: false
scanDirectories:
- ../woocommerce-subscriptions/
bootstrapFiles:
- %currentWorkingDirectory%/vendor/php-stubs/wordpress-stubs/wordpress-stubs.php
- %currentWorkingDirectory%/vendor/php-stubs/woocommerce-stubs/woocommerce-stubs.php
paths:
- woocommerce-gateway-amazon-payments-advanced.php
- includes/
excludePaths:
analyse:
- *-legacy.php
- includes/compats/
ignoreErrors:
# Stub causes errors
- '#Function apply_filters invoked with#'
# PHPStan analysis error
- "#Cannot unset offset 'enable_login_app'#"
- '#Access to an undefined property WC_Subscription::\$handled_cancel#'
- '#Call to an undefined method WC_Order::get_related_orders#'
# WC Stub issues
- '#Access to an undefined property WC_Cart::#'
- '#Access to an undefined property WC_Session::#'
- '#Call to an undefined method WC_Data_Store::get_zones#'
- '#Call to an undefined method WC_Session::save_data#'
- '#Access to an undefined property WC_Checkout::\$checkout_fields#'