Repository navigation
Expand file tree
/
Copy pathphpstan.neon
More file actions
74 lines (62 loc) · 3.01 KB
/
Copy pathphpstan.neon
File metadata and controls
74 lines (62 loc) · 3.01 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
includes:
- vendor-bin/phpstan/config/config.php
- vendor-bin/phpstan/vendor/phpstan/phpstan/conf/bleedingEdge.neon
- vendor-bin/phpstan/vendor/phpstan/phpstan-phpunit/extension.neon
- vendor-bin/phpstan/vendor/phpstan/phpstan-phpunit/rules.neon
- vendor-bin/phpstan/vendor/phpstan/phpstan-symfony/extension.neon
- vendor-bin/phpstan/vendor/phpstan/phpstan-symfony/rules.neon
- vendor-bin/phpstan/vendor/slam/phpstan-extensions/conf/symfony-rules.neon
parameters:
level: 6
paths:
- %currentWorkingDirectory%/calendar-bundle/src
- %currentWorkingDirectory%/calendar-bundle/tests
- %currentWorkingDirectory%/comments-bundle/src
- %currentWorkingDirectory%/comments-bundle/tests
- %currentWorkingDirectory%/core-bundle/src
- %currentWorkingDirectory%/core-bundle/tests
- %currentWorkingDirectory%/faq-bundle/src
- %currentWorkingDirectory%/faq-bundle/tests
- %currentWorkingDirectory%/listing-bundle/src
- %currentWorkingDirectory%/maker-bundle/src
- %currentWorkingDirectory%/maker-bundle/tests
- %currentWorkingDirectory%/news-bundle/src
- %currentWorkingDirectory%/news-bundle/tests
- %currentWorkingDirectory%/newsletter-bundle/src
- %currentWorkingDirectory%/newsletter-bundle/tests
universalObjectCratesClasses:
- Contao\BackendUser
- Contao\Database\Result
- Contao\Model
- Contao\Template
excludePaths:
- %currentWorkingDirectory%/core-bundle/tests/Fixtures/*
- %currentWorkingDirectory%/core-bundle/tests/Functional/app/*
- %currentWorkingDirectory%/core-bundle/tests/Functional/var/*
ignoreErrors:
- identifier: missingType.iterableValue
# Disable the @internal handling, as the tag is often only used to mark
# things as "not covered by the BC promise".
- identifier: classConstant.internal
- identifier: method.internal
- identifier: method.internalClass
- identifier: new.internalClass
- identifier: parameter.internalClass
- identifier: property.internalClass
- identifier: staticMethod.internal
- identifier: staticMethod.internalClass
# Ignore @no-named-arguments errors caused by PHPUnit.
# https://github.com/sebastianbergmann/phpunit/issues/6163
- identifier: argument.named
path: %currentWorkingDirectory%/*-bundle/tests/*
# Ignore missing generated class names
- message: '#setMockClassName\(\) expects class-string, string given#'
treatPhpDocTypesAsCertain: false
rememberPossiblyImpureFunctionValues: false
services:
- class: Contao\Tools\PHPStan\HelperReturnTypeExtension
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
- class: Contao\Tools\PHPStan\ExtensionReturnTypeExtension
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]
- class: Contao\Tools\PHPStan\GraphReturnTypeExtension
tags: [phpstan.broker.dynamicMethodReturnTypeExtension]