woocommerce-paypal-payments/phpstan.neon
Daniel Dudzic 718aa6b879
Some checks are pending
CI / coding-standards-analysis-php (push) Waiting to run
CI / static-code-analysis-php (push) Waiting to run
CI / tests-unit-php (7.4) (push) Waiting to run
CI / tests-unit-php (8.0) (push) Waiting to run
CI / tests-unit-php (8.1) (push) Waiting to run
CI / tests-unit-php (8.2) (push) Waiting to run
CI / tests-unit-php (8.3) (push) Waiting to run
CI / tests-unit-php (8.4) (push) Waiting to run
🔧 Fix PHPStan errors for Settings and Blueprint classes
2026-04-23 15:19:25 +02:00

41 lines
1.5 KiB
Text

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
- stubs/wc-blueprint.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