forked from phpDocumentor/phpDocumentor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon
43 lines (35 loc) · 2.26 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
includes:
- ./vendor/phpdocumentor/graphviz/extension.neon
parameters:
level: 6
inferPrivatePropertyTypeFromConstructor: true
treatPhpDocTypesAsCertain: false
scanFiles:
- vendor/phpdocumentor/guides/src/DependencyInjection/GuidesExtension.php
ignoreErrors:
# 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\.#'
- '#Class phpDocumentor\\Guides\\Compiler\\DescriptorAwareCompilerContext extends \@final class phpDocumentor\\Guides\\Compiler\\CompilerContext#'
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