Files
core/phpstan.neon
2020-06-22 17:28:22 +02:00

31 lines
1.5 KiB
Plaintext

parameters:
tmpDir: var/cache/ecs
level: 5
symfony:
container_xml_path: '%rootDir%/../../../var/cache/dev/srcBolt_KernelDevDebugContainer.xml'
ignoreErrors:
# false positive: `Unreachable statement - code above always terminates.`
# Note: https://github.com/phpstan/phpstan/issues/2651 is marked as fixed, but the issue remains.
-
message: '#Unreachable statement - code above always terminates#'
path: %currentWorkingDirectory%/src/*
# false positive: `TranslationInterface does not know about FieldTranslation::getValue().` Skip this error.
-
message: '#Call to an undefined method Knp\\DoctrineBehaviors\\Contract\\Entity\\TranslationInterface#'
path: %currentWorkingDirectory%/src/*
# false positive: `Method Symfony\Contracts\EventDispatcher\EventDispatcherInterface::dispatch() invoked with 2 parameters, 1 required.`
# We skip this error, because it's still what the docs recommend: https://symfony.com/doc/current/components/event_dispatcher.html#dispatch-the-event
-
message: '#EventDispatcherInterface::dispatch\(\) invoked with 2 parameters#'
path: %currentWorkingDirectory%/src/*
includes:
- vendor/phpstan/phpstan-symfony/extension.neon
- vendor/phpstan/phpstan-doctrine/extension.neon
# - vendor/thecodingmachine/phpstan-safe-rule/phpstan-safe-rule.neon # make ON when thecodingmachine/safe will get stable
rules:
- Symplify\CodingStandard\Rules\NoDebugFuncCallRule