-
-
Notifications
You must be signed in to change notification settings - Fork 157
/
phpstan.neon.dist
45 lines (35 loc) · 1.89 KB
/
phpstan.neon.dist
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
includes:
- vendor/phpstan/phpstan-phpunit/extension.neon
- vendor/phpstan/phpstan-phpunit/rules.neon
- vendor/contao/phpstan/extension.neon
- vendor/phpstan/phpstan-symfony/extension.neon
parameters:
bootstrap: %currentWorkingDirectory%/vendor/autoload.php
contao:
services_yml_path: %currentWorkingDirectory%/core-bundle/src/Resources/config/services.yml
symfony:
container_xml_path: %currentWorkingDirectory%/vendor/contao/phpstan/var/cache/dev/appDevPHPStanProjectContainer.xml
excludes_analyse:
- %currentWorkingDirectory%/core-bundle/src/Resources/*
- %currentWorkingDirectory%/core-bundle/tests/Fixtures/*
ignoreErrors:
# Missing constants that are defined at runtime
- '#Constant TL_ROOT not found\.#'
- '#Constant TL_MODE not found\.#'
- '#Constant TL_REFERER_ID not found\.#'
- '#Constant TL_PATH not found\.#'
- '#Constant TL_SCRIPT not found\.#'
- '#Constant BE_USER_LOGGED_IN not found\.#'
- '#Constant FE_USER_LOGGED_IN not found\.#'
# Undefined properties in Contao fixtures
- '#Access to an undefined property Contao\\Fixtures\\#'
# Missing classes that are only used in BundleConfig::setLoadAfter()
- '#Class Symfony\\Bundle\\TwigBundle\\TwigBundle not found\.#'
- '#Class Symfony\\Bundle\\MonologBundle\\MonologBundle not found\.#'
- '#Class Nelmio\\SecurityBundle\\NelmioSecurityBundle not found\.#'
- '#Class Contao\\ManagerBundle\\ContaoManagerBundle not found\.#'
# Ignore Symfony Configuration errors
- '#Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition::children\(\)\.#'
# Ignore missing method test
- '#Call to an undefined method Contao\\CoreBundle\\Framework\\Adapter::missingMethod\(\)\.#'
reportUnmatchedIgnoredErrors: false