-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathphpstan-baseline.neon
97 lines (82 loc) · 3.82 KB
/
phpstan-baseline.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
parameters:
ignoreErrors:
-
message: '#^Cannot cast \(K of mixed\)\|T of mixed to string\.$#'
identifier: cast.string
count: 2
path: src/Arrays.php
-
message: '#^Method DR\\Utils\\Arrays\:\:removeKeys\(\) should return T of array\<mixed\> but returns array\<mixed\>\.$#'
identifier: return.type
count: 2
path: src/Arrays.php
-
message: '#^Doing instanceof PHPStan\\Type\\ArrayType is error\-prone and deprecated\. Use Type\:\:isArray\(\) or Type\:\:getArrays\(\) instead\.$#'
identifier: phpstanApi.instanceofType
count: 1
path: src/PHPStan/Extension/ArraysRemoveTypesReturnExtension.php
-
message: '#^Doing instanceof PHPStan\\Type\\Constant\\ConstantArrayType is error\-prone and deprecated\. Use Type\:\:getConstantArrays\(\) instead\.$#'
identifier: phpstanApi.instanceofType
count: 3
path: src/PHPStan/Extension/ArraysRemoveTypesReturnExtension.php
-
message: '#^Parameter \#1 \$keyTypes of class PHPStan\\Type\\Constant\\ConstantArrayType constructor expects array\<int, PHPStan\\Type\\Constant\\ConstantIntegerType\|PHPStan\\Type\\Constant\\ConstantStringType\>, list\<PHPStan\\Type\\Type\> given\.$#'
identifier: argument.type
count: 1
path: src/PHPStan/Extension/ArraysRemoveTypesReturnExtension.php
-
message: '#^Call to an undefined method PHPStan\\Type\\ArrayType\|PHPStan\\Type\\Constant\\ConstantArrayType\:\:getValueTypes\(\)\.$#'
identifier: method.notFound
count: 1
path: src/PHPStan/Extension/ArraysRenameKeyReturnExtension.php
-
message: '#^Doing instanceof PHPStan\\Type\\ArrayType is error\-prone and deprecated\. Use Type\:\:isArray\(\) or Type\:\:getArrays\(\) instead\.$#'
identifier: phpstanApi.instanceofType
count: 1
path: src/PHPStan/Extension/ArraysRenameKeyReturnExtension.php
-
message: '#^Doing instanceof PHPStan\\Type\\Constant\\ConstantArrayType is error\-prone and deprecated\. Use Type\:\:getConstantArrays\(\) instead\.$#'
identifier: phpstanApi.instanceofType
count: 1
path: src/PHPStan/Extension/ArraysRenameKeyReturnExtension.php
-
message: '#^Parameter \#1 \$keyTypes of class PHPStan\\Type\\Constant\\ConstantArrayType constructor expects array\<int, PHPStan\\Type\\Constant\\ConstantIntegerType\|PHPStan\\Type\\Constant\\ConstantStringType\>, list\<PHPStan\\Type\\Type\> given\.$#'
identifier: argument.type
count: 1
path: src/PHPStan/Extension/ArraysRenameKeyReturnExtension.php
-
message: '#^Using nullsafe property access on non\-nullable type PhpParser\\Node\\ArrayItem\. Use \-\> instead\.$#'
identifier: nullsafe.neverNull
count: 2
path: src/PHPStan/Lib/TypeNarrower.php
-
message: '#^Cannot cast mixed to string\.$#'
identifier: cast.string
count: 1
path: tests/Unit/ArraysTest.php
-
message: '#^Return type of call to static method DR\\Utils\\Assert\:\:classString\(\) contains unresolvable type\.$#'
identifier: staticMethod.unresolvableReturnType
count: 1
path: tests/Unit/AssertTest.php
-
message: '#^Return type of call to static method DR\\Utils\\Assert\:\:inArray\(\) contains unresolvable type\.$#'
identifier: staticMethod.unresolvableReturnType
count: 1
path: tests/Unit/AssertTest.php
-
message: '#^Return type of call to static method DR\\Utils\\Assert\:\:isCallable\(\) contains unresolvable type\.$#'
identifier: staticMethod.unresolvableReturnType
count: 1
path: tests/Unit/AssertTest.php
-
message: '#^Return type of call to static method DR\\Utils\\Assert\:\:nonEmptyString\(\) contains unresolvable type\.$#'
identifier: staticMethod.unresolvableReturnType
count: 1
path: tests/Unit/AssertTest.php
-
message: '#^Return type of call to static method DR\\Utils\\Assert\:\:numeric\(\) contains unresolvable type\.$#'
identifier: staticMethod.unresolvableReturnType
count: 1
path: tests/Unit/AssertTest.php