Repository navigation
Expand file tree
/
Copy pathphpstan-baseline.neon
More file actions
253 lines (212 loc) · 7.66 KB
/
Copy pathphpstan-baseline.neon
File metadata and controls
253 lines (212 loc) · 7.66 KB
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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
parameters:
ignoreErrors:
-
rawMessage: Offset 'WPMEDIA_PHPUNIT_ROOT_DIR' does not exist on string.
identifier: offsetAccess.notFound
count: 1
path: src/BootstrapManager.php
-
rawMessage: 'Parameter #1 $root of static method WPMedia\PHPUnit\BootstrapManager::getRootDir() expects string, array|bool given.'
identifier: argument.type
count: 1
path: src/BootstrapManager.php
-
rawMessage: 'Strict comparison using === between false and string will always evaluate to false.'
identifier: identical.alwaysFalse
count: 1
path: src/BootstrapManager.php
-
rawMessage: 'Call to WPMedia\PHPUnit\Integration\AdminTestCase::initBeforeClass() on a separate line has no effect.'
identifier: staticMethod.resultUnused
count: 1
path: src/Integration/AdminTestCase.php
-
rawMessage: Constant AUTH_COOKIE not found.
identifier: constant.notFound
count: 1
path: src/Integration/AdminTestCase.php
-
rawMessage: Constant LOGGED_IN_COOKIE not found.
identifier: constant.notFound
count: 1
path: src/Integration/AdminTestCase.php
-
rawMessage: Constant PASS_COOKIE not found.
identifier: constant.notFound
count: 1
path: src/Integration/AdminTestCase.php
-
rawMessage: Constant SECURE_AUTH_COOKIE not found.
identifier: constant.notFound
count: 1
path: src/Integration/AdminTestCase.php
-
rawMessage: Constant USER_COOKIE not found.
identifier: constant.notFound
count: 1
path: src/Integration/AdminTestCase.php
-
rawMessage: 'Class WP_REST_Request referenced with incorrect case: WP_Rest_Request.'
identifier: class.nameCase
count: 1
path: src/Integration/RESTTrait.php
-
rawMessage: 'Class WP_REST_Request referenced with incorrect case: WP_Rest_Request.'
identifier: class.nameCase
count: 1
path: src/Integration/RESTVfsTestCase.php
-
rawMessage: Variable $wp_rest_server in PHPDoc tag @var does not exist.
identifier: varTag.variableNotFound
count: 1
path: src/Integration/RESTVfsTestCase.php
-
rawMessage: 'Class WP_REST_Request referenced with incorrect case: WP_Rest_Request.'
identifier: class.nameCase
count: 1
path: src/Integration/RESTfulTestCase.php
-
rawMessage: Variable $wp_rest_server in PHPDoc tag @var does not exist.
identifier: varTag.variableNotFound
count: 1
path: src/Integration/RESTfulTestCase.php
-
rawMessage: Constant WPMEDIA_PHPUNIT_ROOT_DIR not found.
identifier: constant.notFound
count: 1
path: src/Integration/bootstrap.php
-
rawMessage: Constant WPMEDIA_PHPUNIT_ROOT_DIR not found.
identifier: constant.notFound
count: 1
path: Tests/Integration/VirtualFilesystemDirect/TestCase.php
-
rawMessage: 'Found usage of constant WP_ADMIN. Use is_admin() instead.'
identifier: phpstanWP.wpConstant.fetch
count: 1
path: Tests/Integration/testAdminOnly.php
-
rawMessage: Constant WPMEDIA_PHPUNIT_ROOT_DIR not found.
identifier: constant.notFound
count: 1
path: Tests/Integration/testBootstrap.php
-
rawMessage: Catching internal class PHPUnit\Framework\AssertionFailedError.
identifier: catch.internalClass
count: 1
path: Tests/Integration/testHttpRequestTrait.php
-
rawMessage: 'Call to method PHPUnit\Framework\Assert::assertInstanceOf() with ''WPMedia\\PHPUnit\\VirtualFilesystemDirect'' and WPMedia\PHPUnit\VirtualFilesystemDirect will always evaluate to true.'
identifier: method.alreadyNarrowedType
count: 1
path: Tests/Integration/testHttpRequestTraitWithVirtualFilesystem.php
-
rawMessage: Constant WPMEDIA_PHPUNIT_ROOT_DIR not found.
identifier: constant.notFound
count: 1
path: Tests/Integration/testHttpRequestTraitWithVirtualFilesystem.php
-
rawMessage: Constant WPMEDIA_PHPUNIT_ROOT_DIR not found.
identifier: constant.notFound
count: 2
path: Tests/Unit/VirtualFilesystemDirect/TestCase.php
-
rawMessage: 'Method WPMedia\PHPUnit\VirtualFilesystemDirect::rmdir() invoked with 3 parameters, 1-2 required.'
identifier: arguments.count
count: 1
path: Tests/Unit/VirtualFilesystemDirect/rmdir.php
-
rawMessage: 'Call to method PHPUnit\Framework\Assert::assertNull() with int will always evaluate to false.'
identifier: method.impossibleType
count: 2
path: Tests/Unit/VirtualFilesystemDirect/setFilemtime.php
-
rawMessage: Constant WPMEDIA_PHPUNIT_ROOT_DIR not found.
identifier: constant.notFound
count: 1
path: Tests/Unit/VirtualFilesystemTestTrait/TestCase.php
-
rawMessage: Constant WPMEDIA_PHPUNIT_ROOT_DIR not found.
identifier: constant.notFound
count: 1
path: Tests/Unit/testBootstrap.php
-
rawMessage: 'Method WPMedia\PHPUnit\Tests\Unit\ReflectionTarget::secret() is unused.'
identifier: method.unused
count: 1
path: Tests/Unit/testTestCaseTrait.php
-
rawMessage: 'Call to function is_array() with array will always evaluate to true.'
identifier: function.alreadyNarrowedType
count: 1
path: src/ArrayTrait.php
-
rawMessage: 'Call to function is_null() with string will always evaluate to false.'
identifier: function.impossibleType
count: 2
path: src/ArrayTrait.php
-
rawMessage: Constant WPMEDIA_PHPUNIT_ROOT_DIR not found.
identifier: constant.notFound
count: 1
path: src/Unit/bootstrap.php
-
rawMessage: Binary operation "+" between non-empty-string and non-empty-string results in an error.
identifier: binaryOp.invalid
count: 3
path: src/VirtualFilesystemDirect.php
-
rawMessage: 'Call to function is_null() with bool|org\bovigo\vfs\vfsStreamFile will always evaluate to false.'
identifier: function.impossibleType
count: 1
path: src/VirtualFilesystemDirect.php
-
rawMessage: 'Call to function is_string() with string will always evaluate to true.'
identifier: function.alreadyNarrowedType
count: 1
path: src/VirtualFilesystemDirect.php
-
rawMessage: Instanceof between org\bovigo\vfs\vfsStreamDirectory and org\bovigo\vfs\vfsStreamDirectory will always evaluate to true.
identifier: instanceof.alwaysTrue
count: 1
path: src/VirtualFilesystemDirect.php
-
rawMessage: 'Method WPMedia\PHPUnit\VirtualFilesystemDirect::getDir() should return org\bovigo\vfs\vfsStreamDirectory|null but returns org\bovigo\vfs\vfsStreamContent.'
identifier: return.type
count: 1
path: src/VirtualFilesystemDirect.php
-
rawMessage: 'Method WPMedia\PHPUnit\VirtualFilesystemDirect::getFile() should return org\bovigo\vfs\vfsStreamFile|null but returns org\bovigo\vfs\vfsStreamContent.'
identifier: return.type
count: 1
path: src/VirtualFilesystemDirect.php
-
rawMessage: 'Method WPMedia\PHPUnit\VirtualFilesystemDirect::getnumchmodfromh() should return int but returns string.'
identifier: return.type
count: 1
path: src/VirtualFilesystemDirect.php
-
rawMessage: 'Method WPMedia\PHPUnit\VirtualFilesystemDirect::setFilemtime() should return int but returns null.'
identifier: return.type
count: 1
path: src/VirtualFilesystemDirect.php
-
rawMessage: 'PHPDoc tag @param references unknown parameter: $filectime'
identifier: parameter.notFound
count: 1
path: src/VirtualFilesystemDirect.php
-
rawMessage: 'Property WPMedia\PHPUnit\VirtualFilesystemDirect::$filesystem (org\bovigo\vfs\vfsStreamDirectory) does not accept null.'
identifier: assign.propertyType
count: 1
path: src/VirtualFilesystemDirect.php
-
rawMessage: 'Property WPMedia\PHPUnit\VirtualFilesystemDirect::$root (string) does not accept null.'
identifier: assign.propertyType
count: 1
path: src/VirtualFilesystemDirect.php
-
rawMessage: Constant WPMEDIA_PHPUNIT_ROOT_DIR not found.
identifier: constant.notFound
count: 3
path: src/bootstrap-functions.php