-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan-baseline-7.4.neon
211 lines (177 loc) · 10.3 KB
/
phpstan-baseline-7.4.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
parameters:
ignoreErrors:
-
message: '#^Cannot access offset 1 on mixed\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 1
path: tests/fixtures/Toolkit/Core/Process/cat.php
-
message: '#^Parameter \#1 \$input of function array_slice expects array, mixed given\.$#'
identifier: argument.type
count: 1
path: tests/fixtures/Toolkit/Core/Process/cat.php
-
message: '#^Parameter \#4 \.\.\.\$values of function fprintf expects bool\|float\|int\|string\|null, mixed given\.$#'
identifier: argument.type
count: 1
path: tests/fixtures/Toolkit/Core/Process/cat.php
-
message: '#^Method Salient\\Tests\\Http\\OAuth2\\OAuth2Client\\OAuth2TestClient\:\:getFlow\(\) never returns 1 so it can be removed from the return type\.$#'
identifier: return.unusedType
count: 1
path: tests/fixtures/Toolkit/Http/OAuth2/OAuth2Client/OAuth2TestClient.php
-
message: '#^Method Salient\\Tests\\Http\\OAuth2\\OAuth2Client\\OAuth2TestClient\:\:getJsonWebKeySetUrl\(\) never returns null so it can be removed from the return type\.$#'
identifier: return.unusedType
count: 1
path: tests/fixtures/Toolkit/Http/OAuth2/OAuth2Client/OAuth2TestClient.php
-
message: '#^Method Salient\\Tests\\Http\\OAuth2\\OAuth2Client\\OAuth2TestClient\:\:getListener\(\) never returns null so it can be removed from the return type\.$#'
identifier: return.unusedType
count: 1
path: tests/fixtures/Toolkit/Http/OAuth2/OAuth2Client/OAuth2TestClient.php
-
message: '#^PHPDoc tag @property has invalid value \(\$MyMagicProperty Description of MyBaseClass\:\:\$MyMagicProperty\)\: Unexpected token "\$MyMagicProperty", expected type at offset 46 on line 4$#'
identifier: phpDoc.parseError
count: 1
path: tests/fixtures/Toolkit/Sli/Command/AnalyseClass/MyBaseClass.php
-
message: '#^Parameter \#1 \$data of static method Salient\\Sync\\AbstractSyncEntity\:\:provide\(\) expects array\<mixed\>, mixed given\.$#'
identifier: argument.type
count: 1
path: tests/fixtures/Toolkit/Sync/Provider/JsonPlaceholderApi.php
-
message: '#^Parameter \#1 \$str of function rawurlencode expects string, int\|string\|null given\.$#'
identifier: argument.type
count: 1
path: tests/fixtures/Toolkit/Sync/Provider/JsonPlaceholderApi.php
-
message: '#^Parameter \#1 \$entities of class Salient\\Curler\\CurlerPage constructor expects list\<mixed\>, array\<array\<mixed\>\> given\.$#'
identifier: argument.type
count: 1
path: tests/fixtures/Toolkit/Sync/Provider/MockoonPager.php
-
message: '#^Cannot access property \$Foo on mixed\.$#'
identifier: property.nonObject
count: 1
path: tests/unit/Toolkit/Cache/CacheStoreTest.php
-
message: '#^Call to method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) with ''Salient\\\\Tests\\\\Cli\\\\Command\\\\TestOptions'' and null will always evaluate to false\.$#'
identifier: method.impossibleType
count: 1
path: tests/unit/Toolkit/Cli/CliApplicationTest.php
-
message: '#^Call to method PHPUnit\\Framework\\Assert\:\:assertSame\(\) with array\{array\{onClose\: ''Salient\\\\Tests\\\\Core\\\\Event\\\\NamedLoggableEvent''\}\} and array\<array\{string, string\}\|string\> will always evaluate to false\.$#'
identifier: method.impossibleType
count: 1
path: tests/unit/Toolkit/Core/Event/EventDispatcherTest.php
-
message: '#^Parameter \#1 \$iterator of function iterator_to_array expects Traversable, iterable given\.$#'
identifier: argument.type
count: 2
path: tests/unit/Toolkit/Core/PipelineTest.php
-
message: '#^Method Salient\\Tests\\Core\\ProcessTest\:\:getCallback\(\) never assigns null to &\$output so it can be removed from the by\-ref type\.$#'
identifier: parameterByRef.unusedType
count: 1
path: tests/unit/Toolkit/Core/ProcessTest.php
-
message: '#^Offset 1 might not exist on array\<1\|2, string\>\|null\.$#'
identifier: offsetAccess.notFound
count: 2
path: tests/unit/Toolkit/Core/ProcessTest.php
-
message: '#^Cannot call method getOutputAsText\(\) on Salient\\Core\\Process\|null\.$#'
identifier: method.nonObject
count: 2
path: tests/unit/Toolkit/Http/HttpServerTest.php
-
message: '#^Cannot call method wait\(\) on Salient\\Core\\Process\|null\.$#'
identifier: method.nonObject
count: 1
path: tests/unit/Toolkit/Http/HttpServerTest.php
-
message: '#^Method Salient\\Tests\\Http\\HttpServerTest\:\:getServerWithClient\(\) never assigns null to &\$client so it can be removed from the by\-ref type\.$#'
identifier: parameterByRef.unusedType
count: 1
path: tests/unit/Toolkit/Http/HttpServerTest.php
-
message: '#^Method Salient\\Tests\\Iterator\\RecursiveCallbackIteratorTest\:\:getArrayWithNestedObjectsAndArrays\(\) never assigns null to &\$a so it can be removed from the by\-ref type\.$#'
identifier: parameterByRef.unusedType
count: 1
path: tests/unit/Toolkit/Iterator/RecursiveCallbackIteratorTest.php
-
message: '#^Method Salient\\Tests\\Iterator\\RecursiveCallbackIteratorTest\:\:getArrayWithNestedObjectsAndArrays\(\) never assigns null to &\$d1 so it can be removed from the by\-ref type\.$#'
identifier: parameterByRef.unusedType
count: 1
path: tests/unit/Toolkit/Iterator/RecursiveCallbackIteratorTest.php
-
message: '#^Method Salient\\Tests\\Iterator\\RecursiveCallbackIteratorTest\:\:getArrayWithNestedObjectsAndArrays\(\) never assigns null to &\$d2 so it can be removed from the by\-ref type\.$#'
identifier: parameterByRef.unusedType
count: 1
path: tests/unit/Toolkit/Iterator/RecursiveCallbackIteratorTest.php
-
message: '#^Method Salient\\Tests\\Iterator\\RecursiveCallbackIteratorTest\:\:getArrayWithNestedObjectsAndArrays\(\) never assigns null to &\$e so it can be removed from the by\-ref type\.$#'
identifier: parameterByRef.unusedType
count: 1
path: tests/unit/Toolkit/Iterator/RecursiveCallbackIteratorTest.php
-
message: '#^Cannot call method getDepth\(\) on RecursiveIteratorIterator\<RecursiveCallbackFilterIterator\<string, SplFileInfo, RecursiveDirectoryIterator\>\|RecursiveDirectoryIterator\>\|null\.$#'
identifier: method.nonObject
count: 1
path: tests/unit/Toolkit/Iterator/RecursiveFilesystemIteratorTest.php
-
message: '#^Parameter &\$actualCode @param\-out type of method Salient\\Tests\\Sli\\SliTestCase\:\:serializeTokens\(\) expects array\<array\{int, string, string, array\{int\|null, int\|null\}, array\{int\|null, int\|null\}, int\|null, array\{int\|null, int\|null\}\}\>, non\-empty\-array\<array\{int, int\|non\-falsy\-string, string, array\{int\|null, int\|null\}, array\{int\|null, int\|null\}, int\|null, array\{int\|null, int\|null\}\}\> given\.$#'
identifier: paramOut.type
count: 1
path: tests/unit/Toolkit/Sli/SliTestCase.php
-
message: '#^Parameter \#1 \$data of static method Salient\\Sync\\AbstractSyncEntity\:\:provide\(\) expects array\<mixed\>, mixed given\.$#'
identifier: argument.type
count: 2
path: tests/unit/Toolkit/Sync/Support/DeferredEntityTest.php
-
message: '#^Cannot access offset 0 on array\<Salient\\Sync\\Support\\DeferredEntity\<Salient\\Tests\\Sync\\Entity\\Post\>\|Salient\\Tests\\Sync\\Entity\\Post\>\|Salient\\Sync\\Support\\DeferredRelationship\<Salient\\Tests\\Sync\\Entity\\Post\>\|null\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 1
path: tests/unit/Toolkit/Sync/Support/DeferredRelationshipTest.php
-
message: '#^Cannot access property \$Albums on Salient\\Sync\\Support\\DeferredEntity\<Salient\\Tests\\Sync\\Entity\\User\>\|Salient\\Tests\\Sync\\Entity\\User\|null\.$#'
identifier: property.nonObject
count: 1
path: tests/unit/Toolkit/Sync/Support/DeferredRelationshipTest.php
-
message: '#^Cannot access property \$Posts on Salient\\Sync\\Support\\DeferredEntity\<Salient\\Tests\\Sync\\Entity\\User\>\|Salient\\Tests\\Sync\\Entity\\User\|null\.$#'
identifier: property.nonObject
count: 1
path: tests/unit/Toolkit/Sync/Support/DeferredRelationshipTest.php
-
message: '#^PHPDoc tag @var with type Salient\\Sync\\Support\\SyncContext is not subtype of native type \$this\(Salient\\Tests\\Sync\\Support\\SyncContextTest\)\.$#'
identifier: varTag.nativeType
count: 1
path: tests/unit/Toolkit/Sync/Support/SyncContextTest.php
-
message: '#^Cannot access property \$Id on Salient\\Sync\\Support\\DeferredEntity\<Salient\\Tests\\Sync\\Entity\\User\>\|Salient\\Tests\\Sync\\Entity\\User\|null\.$#'
identifier: property.nonObject
count: 1
path: tests/unit/Toolkit/Sync/Support/SyncEntityProviderTest.php
-
message: '#^PHPDoc tag @var with type Salient\\Sync\\SyncSerializeRules\<T of Salient\\Contract\\Sync\\SyncEntityInterface\> is not subtype of native type \$this\(Salient\\Tests\\Sync\\SyncSerializeRulesTest\)\.$#'
identifier: varTag.nativeType
count: 1
path: tests/unit/Toolkit/Sync/SyncSerializeRulesTest.php
-
message: '#^Parameter \#1 \$exception of method PHPUnit\\Framework\\TestCase\:\:expectException\(\) expects class\-string\<Throwable\>, string given\.$#'
identifier: argument.type
count: 1
path: tests/unit/Toolkit/Utility/EnvTest.php
-
message: '#^Method Salient\\Tests\\Utility\\InflectTest\:\:formatRangeProvider\(\) should return array\<array\{string, string, float\|int, float\|int, string\}\> but returns array\{array\{''on line 71'', ''from lines 71 to 83'', 71, 83, ''\{\{\#\:on\:from\}\} \{\{\#…''\}, array\{''on line 71'', ''on lines between 71…'', 71, 83, ''on \{\{\#\:line\}\} \{\{\#\:…''\}, array\{''on line 71 in\:…'', ''on lines between 71…'', 71, 83, ''on \{\{\#\:line\}\} \{\{\#\:…'', ''Salient\\\\Tests…''\}, array\{''at value 3\.14'', ''between values 3\.14…'', 3\.14, 6\.626E\-34, ''\{\{\#\:at\:between\}\} \{\{…''\}, array\{''No consecutive days…'', null, 0, 0, ''\{\{\#\:No\}\}…''\}, array\{''1 consecutive day…'', ''1 to 7 consecutive…'', 1, 7, ''\{\{\#\:No\}\}…''\}, array\{''No ensuites are…'', null, 0, 0, ''\{\{\#\:An\}\} \{\{\#…''\}, array\{''An ensuite is…'', ''1 to 3 ensuites are…'', 1, 3, ''\{\{\#\:An\}\} \{\{\#…''\}\}\.$#'
identifier: return.type
count: 1
path: tests/unit/Toolkit/Utility/InflectTest.php
-
message: '#^Parameter \#3 \$flags of static method Salient\\Utility\\Regex\:\:grep\(\) expects int\<0, 1\>, int given\.$#'
identifier: argument.type
count: 1
path: tests/unit/Toolkit/Utility/RegexTest.php