-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.dist.neon
69 lines (69 loc) · 3.31 KB
/
phpstan.dist.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
67
68
69
parameters:
level: max
paths:
- Src/
- bootstrap.php
- Tests/DirectoryScannerTest.php # To cover "DirectoryScanner" aware traits.
excludePaths:
- vendor/
- Src/Traits/ContainerAware.php
ignoreErrors:
- # Only invoked if subDirectory provided in config file.
path: bootstrap.php
identifier: method.notFound
message: '#^Call to an undefined method .*?CommandLoader::usingSubDirectory\(\).$#'
-
path: bootstrap.php
messages:
- '#^Method .*?Bootstrap\:\:configure\(\) should return array\{string, .*?\} but returns array\{string, mixed, mixed\}\.$#'
- '#^Cannot access offset ''commandLoader'' on mixed\.$#'
- # Container binding as an array: [$commandClassname, 'start']
path: Src/CommandLoader.php
identifier: argument.type
count: 1
message: '#^Parameter \#2 \$command of method .*?CommandLoader::useFoundCommand\(\) expects callable.*?, array{class-string\<.*?Console\>, ''start''} given.$#'
-
path: Src/Traits/DirectoryScanner.php
identifier: method.notFound
message: '#^Call to an undefined method .*?::registerCurrentItemDepth\(\).$#'
-
path: Src/Traits/DirectoryScanner.php
identifier: argument.type
messages:
- '#^Parameter \#1 \$value of function count expects array\|Countable\, mixed given.$#'
- '#^Parameter \$parts of method .*?::maybeRegisterCurrentDepth\(\) expects array\<string\>\, mixed given.$#'
- # Available when respective traits are used by exhibiting class.
path: Src/Traits/DirectoryScanner.php
identifier: method.notFound
message: '#^Call to an undefined method .*?::(currentSubDirectoryTree\(\)|forCurrentSubDirectory\(\)).$#'
-
# Parser::parseInputSuggestion() -> BackedEnum is never callable.
# Parser::suggestedValuesFrom() -> ReflectionProperty::getValue() return type is mixed and not narrowed.
path: Src/Helper/Parser.php
identifier: return.type
message: '#^Method .*?Parser::.*?\(\) should return .*? but returns .*?.$#'
- # Walked collection is converted to Symfony Inputs.
path: Src/Helper/InputAttribute.php
identifier: return.type
count: 1
message: '#^Method .*?InputAttribute::toSymfonyInput\(\) should return array\<.*?, array\<string, Symfony.*?\>\> but returns array\<.*?, array\<string, TheWebSolver.*?\>\>.$#'
- # Internal data for setting value (that's the intent).
path: Src/Traits/ConstructorAware.php
identifier: argument.type
count: 3
message: '#^Parameter \#1 \$name of class .*?(Positional|Associative|Flag) constructor expects string, mixed given.$#'
- # Assigned in constructor of `InputProperties` trait.
path: Src/Data/Associative.php
identifier: property.readOnlyAssignNotInConstructor
count: 7
message: '#^Readonly property .*?Associative::\$.*? is assigned outside of the constructor.$#'
- # `ConstructorAware` trait generics always matches Flag::__construct() method's parameter names.
path: Src/Data/Flag.php
identifier: assign.propertyType
count: 1
message: '#^Property .*?Flag::\$paramNames \(array\<.*?\>\) does not accept array\<string\>.$#'
- # Callable is always an array: [$commandClassname, 'start'].
path: Src/Adapter/CompilableCommandLoader.php
identifier: argument.type
count: 1
message: '#^Parameter \#2 \$value of method .*?ArrayPhpFile::addImportableContent\(\) expects array\{string, string}\|Closure\|string, callable.*? given.$#'