-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathphpstan.neon
More file actions
40 lines (40 loc) · 1.51 KB
/
phpstan.neon
File metadata and controls
40 lines (40 loc) · 1.51 KB
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
32
33
34
35
36
37
38
39
40
includes:
- vendor/phpstan/phpstan-deprecation-rules/rules.neon
- vendor/swissspidy/phpstan-no-private/rules.neon
- phpstan-baseline.neon
parameters:
level: 8
reportUnmatchedIgnoredErrors: false
scanFiles:
- stubs/stubs.php
- stubs/wcblocks.php
- stubs/wcs.php
- stubs/shiptastic.php
- stubs/wc-bookings.php
- stubs/wpcli.php
- vendor/inpsyde/wp-stubs-versions/latest.php
- vendor/php-stubs/woocommerce-stubs/woocommerce-stubs.php
paths:
- api/
- src/
- modules/
- bootstrap.php
- modules.php
- uninstall.php
- woocommerce-paypal-payments.php
excludePaths:
- modules/*/tests/*
- modules/*/vendor/*
- modules/*/assets/*
- modules/*/resources/*
treatPhpDocTypesAsCertain: false
ignoreErrors:
- '#Property WooCommerce\:\:\$cart \(WC_Cart\) .+ is not nullable.#'
- '#Access to an undefined property WooCommerce\:\:\$payment_gateways.#'
- '#Access to an undefined property WooCommerce\:\:\$shipping.#'
- '#Access to an undefined property WC_Session\:\:\$applied_coupon.#'
- '#Access to an undefined property WC_Cart\:\:\$subtotal.#'
- '#Access to an undefined property WC_Cart\:\:\$total.#'
- '#Property WooCommerce\:\:\$session \(WC_Session\) .+ is not nullable.#'
- '#PayLaterMessagingSettings.+ has parameter \$styles with no type specified#'
- identifier: missingType.iterableValue