forked from mautic/mautic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon
47 lines (46 loc) · 2.1 KB
/
phpstan.neon
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
41
42
43
44
45
46
47
includes:
- phpstan-baseline.neon
- vendor/phpstan/phpstan/conf/bleedingEdge.neon
parameters:
level: 6
reportUnmatchedIgnoredErrors: false
parallel:
maximumNumberOfProcesses: 4
processTimeout: 1000.0
paths:
- app/bundles
- app/migrations
- plugins
excludes_analyse:
- *.html.php
- *.js.php
- *.less.php
- *.inc.php
- app/bundles/CoreBundle/Assets/js/libraries/ckeditor/*
- app/bundles/CoreBundle/Controller/AbstractFormController.php
- app/bundles/CoreBundle/Controller/AbstractStandardFormController.php
- app/bundles/CoreBundle/Tests/_support/*
- app/bundles/CoreBundle/Tests/Functional/IpLookupFactoryCest.php
- app/bundles/CoreBundle/Tests/Unit/Doctrine/ArrayTypeTest.php
- app/bundles/CoreBundle/Views/Helper/action_button_helper.php
- app/bundles/FormBundle/Views/Field/field_helper.php
- app/bundles/CoreBundle/Loader/ParameterLoader.php
- app/bundles/CoreBundle/Helper/PathsHelper.php
- app/bundles/CoreBundle/Configurator/Configurator.php
dynamicConstantNames:
- MAUTIC_ENV
- MAUTIC_TABLE_PREFIX
- MAUTIC_VERSION
ignoreErrors:
- '#Cannot unset offset#'
- '#Undefined variable: \$parameters#'
- '#Constant MAUTIC_TABLE_PREFIX not found.#'
- '#Constant MAUTIC_ENV not found.#'
- '#Constant MAUTIC_VERSION not found.#'
- '/Variable \$\w+ might not be defined\./'
- '/Variable \$paths in isset\(\) is never defined\./'
- '#Property Mautic\\LeadBundle\\EventListener\\SegmentFiltersSubscriber::\$translator \(Symfony\\Component\\Translation\\TranslatorInterface\) in isset\(\) is not nullable\.#' # this is antipatern, should be refactored.
- '#Call to an undefined static method static\(Mautic\\IntegrationsBundle\\Bundle\\AbstractPluginBundle\)::installAllTablesIfMissing\(\).#'
# Following 2 ignores are there due to https://symfony.com/blog/new-in-symfony-4-3-simpler-event-dispatching
- '#Method Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface::dispatch\(\) invoked with 2 parameters, 1 required\.#'
- '#Parameter \#1 \$event of method Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface::dispatch\(\) expects object, string given\.#'