forked from phpDocumentor/phpDocumentor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon
66 lines (55 loc) · 3.6 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
includes:
- /composer/vendor/phpstan/phpstan-webmozart-assert/extension.neon
- ./vendor/phpdocumentor/graphviz/extension.neon
parameters:
level: 6
inferPrivatePropertyTypeFromConstructor: true
treatPhpDocTypesAsCertain: false
ignoreErrors:
# This is intended to check if a placeholder was replace by box; but phpstan does not know this :)
- "/Strict comparison using !== between '@package_version@' and '@package_version@' will always evaluate to false./"
# PHPStan does not play nice with Symfony Config's fluid interface
- '#.*NodeDefinition::prototype.*#'
- '#.*NodeDefinition::addDefaultChildrenIfNoneSet.*#'
- '#.*NodeDefinition::fixXmlConfig.*#'
- '#.*NodeDefinition::addDefaultsIfNotSet.*#'
# FlyFinder plugin adds a find method to FlySystem's Filesystem
- '#Call to an undefined method League\\Flysystem\\Filesystem::find\(\)#'
# PHPStan has issue when involving templates and parent types
- '#Parameter \#1 \$matcher of method phpDocumentor\\Descriptor\\Builder\\AssemblerFactory::(register|registerFallback)\(\) expects phpDocumentor\\Descriptor\\Builder\\Matcher<object>, phpDocumentor\\Descriptor\\Builder\\Matcher<.+> given\.#'
# PHPStan doesn't support inheritance of TDescriptor
- '#Parameter \#2 \$assembler of method phpDocumentor\\Descriptor\\Builder\\AssemblerFactory::(register|registerFallback)\(\) expects phpDocumentor\\Descriptor\\Builder\\AssemblerInterface.* given\.#'
-
message: "#^Parameter \\#1 \\$value of method phpDocumentor\\\\GraphViz\\\\Graph\\:\\:setCenter\\(\\) expects bool, string given\\.$#"
count: 1
path: src/phpDocumentor/Transformer/Writer/Graph/GraphVizClassDiagram.php
-
message: "#^Parameter \\#1 \\$value of method phpDocumentor\\\\GraphViz\\\\Graph\\:\\:setConcentrate\\(\\) expects bool, string given\\.$#"
count: 1
path: src/phpDocumentor/Transformer/Writer/Graph/GraphVizClassDiagram.php
-
message: "#^Parameter \\#1 \\$value of method phpDocumentor\\\\GraphViz\\\\Graph\\:\\:setRankSep\\(\\) expects float, string given\\.$#"
count: 1
path: src/phpDocumentor/Transformer/Writer/Graph/GraphVizClassDiagram.php
-
message: "#^Parameter \\#1 \\$value of method phpDocumentor\\\\GraphViz\\\\Node\\:\\:setFontSize\\(\\) expects float, string given\\.$#"
count: 1
path: src/phpDocumentor/Transformer/Writer/Graph/GraphVizClassDiagram.php
-
message: "#^Parameter \\#1 \\$value of method phpDocumentor\\\\GraphViz\\\\Graph\\:\\:setFontSize\\(\\) expects float, string given\\.$#"
count: 1
path: src/phpDocumentor/Transformer/Writer/Graph/GraphVizClassDiagram.php
excludePaths:
#test data
- %currentWorkingDirectory%/tests/features/**/*.php
- %currentWorkingDirectory%/tests/data/*.php
- %currentWorkingDirectory%/tests/features/assets/**/*.php
- %currentWorkingDirectory%/tests/ReferenceImplementation.php
# needs adjustment of interface in phpDocumentor/reflection in order to be able to typehint the command
- %currentWorkingDirectory%/src/phpDocumentor/Parser/Middleware/CacheMiddleware.php
# phpunit TestCase while having to use a composer-global install ("Class PHPUnit\\Framework\\TestCase not found and could not be autoloaded")
- %currentWorkingDirectory%/tests/unit/**/*.php
- %currentWorkingDirectory%/tests/integration/**/*.php
- %currentWorkingDirectory%/tests/functional/**/*.php
- %currentWorkingDirectory%/incubator/*/tests/unit/*.php
- %currentWorkingDirectory%/incubator/*/tests/unit/**/*.php