Files
piratepoet/tasks/phpstan/phpstan.neon
Jan Jakeš 60889c53f4 Add Idiorm to MailPoetVendor namespace
[MAILPOET-2545]
2019-11-27 12:38:20 +00:00

21 lines
1.3 KiB
Plaintext

parameters:
mailpoetDir: %rootDir%/../../../../..
tmpDir: ../../temp/phpstan
bootstrap: bootstrap.php
autoload_files:
- %mailpoetDir%/vendor/autoload.php
ignoreErrors:
- '#Function members_register_.+ not found#'
- '#Cannot assign offset .path. to array<string, int|string>|false.#' # bug https://github.com/phpstan/phpstan/issues/1791
- '#MailPoet\\Premium\\DI\\ContainerConfigurator not found#' # this class is not available when premium is not active
- '#Call to an undefined method MailPoetVendor\\Idiorm\\IdiormResultSet::set()#'
- '#Argument of an invalid type pQuery\\IQuery supplied for foreach, only iterables are supported#'
- '#Parameter \#2 \$prefix of function http_build_query expects string, null given.#'
- '#Parameter \#1 \$function of function call_user_func_array expects callable(): mixed, .wc_.*. given.#'
- '#Parameter \#1 \$reader of class MailPoetVendor\\Doctrine\\ORM\\Mapping\\Driver\\AnnotationDriver constructor expects MailPoetVendor\\Doctrine\\Common\\Annotations\\AnnotationReader, MailPoetVendor\\Doctrine\\Common\\Annotations\\CachedReader given#'
reportUnmatchedIgnoredErrors: false
dynamicConstantNames:
- WP_DEBUG
includes:
- phpstan-baseline.neon # https://medium.com/@ondrejmirtes/phpstans-baseline-feature-lets-you-hold-new-code-to-a-higher-standard-e77d815a5dff