Handle WP source path config for different environments

[MAILPOET-3029]
This commit is contained in:
Rostislav Wolny
2020-11-05 13:18:23 +01:00
committed by Veljko V
parent 76bb139019
commit 688755a9bf
5 changed files with 10 additions and 5 deletions

View File

@@ -8,9 +8,6 @@ parameters:
- PremiumContainerConfigurator.php
- woocommerce.php
- ../../vendor-prefixed/twig/twig/src/Extension/CoreExtension.php # phpstan can't find \MailPoetVendor\twig_include function
scanDirectories:
- ../../../../../wp-includes
- ../../../../../wp-admin/includes/
inferPrivatePropertyTypeFromConstructor: true
parallel:
processTimeout: 300.0
@@ -49,6 +46,7 @@ parameters:
excludes_analyse:
- ../../lib/Config/PopulatorData/Templates
includes:
- _phpstan-wp-source.neon # Config file that adds paths to WP source code. Generated from phpstan-wp-source.neon by Robo
- vendor/phpstan/phpstan-doctrine/extension.neon
- vendor/phpstan/phpstan-doctrine/rules.neon
- phpstan-baseline.neon # https://medium.com/@ondrejmirtes/phpstans-baseline-feature-lets-you-hold-new-code-to-a-higher-standard-e77d815a5dff