-
-
Notifications
You must be signed in to change notification settings - Fork 76
/
phpstan.neon.dist
63 lines (61 loc) · 3.87 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
parameters:
checkMissingIterableValueType: false
checkGenericClassInNonGenericObjectType: false
excludePaths:
- tests/Autoload/AutoloadDumperTest.php
ignoreErrors:
- message: '#Cannot cast array\<string\>\|string to string\.#'
path: 'src/Patcher/SymfonyPatcher.php'
- message: '#Parameter \#1 \$nodes of method PhpParser\\NodeTraverserInterface::traverse\(\) expects array\<PhpParser\\Node\>, array\<PhpParser\\Node\\Stmt\>\|null given\.#'
path: 'src/Scoper/PhpScoper.php'
- message: '#UseStmtManipulator::getOriginalName\(\) should return#'
path: 'src/PhpParser/NodeVisitor/UseStmt/UseStmtManipulator.php'
- message: '#IdentifierResolver::resolveIdentifier\(\) should return#'
path: 'src/PhpParser/NodeVisitor/Resolver/IdentifierResolver.php'
- message: '#ParentNodeAppender::getParent\(\) should return#'
path: 'src/PhpParser/NodeVisitor/AttributeAppender/ParentNodeAppender.php'
- message: '#ParentNodeAppender::findParent\(\) should return#'
path: 'src/PhpParser/NodeVisitor/AttributeAppender/ParentNodeAppender.php'
- message: '#OriginalNameResolver::getOriginalName\(\) should return#'
path: 'src/PhpParser/NodeVisitor/Resolver/OriginalNameResolver.php'
- message: '#NamespaceManipulator::getOriginalName\(\) should return#'
path: 'src/PhpParser/NodeVisitor/NamespaceStmt/NamespaceManipulator.php'
- message: '#Anonymous function should return string but returns array#'
path: 'tests/Console/Command/AddPrefixCommandIntegrationTest.php'
- message: '#AddPrefixCommandIntegrationTest\:\:getNormalizeDisplay\(\) should return string but returns array#'
path: 'tests/Console/Command/AddPrefixCommandIntegrationTest.php'
- message: '#ConfigurationKeysTest\:\:retrieveConfigurationKeys\(\) should return array#'
path: 'tests/Configuration/ConfigurationKeysTest.php'
- message: '#Property .* does not accept#'
path: 'src/PhpParser/NodeVisitor/UseStmt/UseStmtCollection.php'
- message: '#::concat\(\) should return .+Name but returns .+\|null#'
path: 'src/PhpParser/Node/NameFactory.php'
- message: '#concat\(\) should return .+FullyQualified but returns .+\|null#'
path: 'src/PhpParser/Node/FullyQualifiedFactory.php'
- message: '#retrieveElements\(\) should return#'
path: 'src/Configuration/SymbolsConfigurationFactory.php'
- message: '#Scoper::scope\(\) expects string\, mixed given\.#'
path: 'src/Scoper/PatchScoper.php'
- message: '#Scoper::scope\(\) expects string\, mixed given\.#'
path: 'src/Scoper/PhpScoper.php'
- message: '#Scoper::scope\(\) expects string\, mixed given\.#'
path: 'src/Scoper/Symfony/XmlScoper.php'
- message: '#Scoper::scope\(\) expects string\, mixed given\.#'
path: 'src/Scoper/Symfony/YamlScoper.php'
- message: '#Scoper::scope\(\) expects string\, mixed given\.#'
path: 'src/Scoper/SymfonyScoper.php'
- message: '#Class Isolated\\Symfony\\Component\\Finder\\Finder not found\.#'
path: 'tests/Configuration/DefaultConfigurationTest.php'
- message: '#Cannot access offset#'
path: 'tests/AutoReview/GAE2ECollector.php'
- message: '#normalizeSymbolsRegistryReference#'
path: 'tests/Console/Command/AddInspectCommandIntegrationTest.php'
- message: '#unserialize#'
path: 'src/Symbol/SymbolsRegistry.php'
- message: '#Stmt\:\:\$stmts#'
path: 'src/PhpParser/NodeVisitor/ClassAliasStmtAppender.php'
- message: '#PhpVersion::fromComponents#'
path: 'tests/SpecFramework/SpecScenario.php'
# Fixed in https://github.com/nikic/PHP-Parser/pull/1003
- message: '#Standard constructor expects array#'
path: 'src/Container.php'