2m 20s
Jan 15, 2025, 12:17 AM

filesystem

Updating phpstan to 2.0 (#73) * Updating phpstan to 2.0 * Adding PHP 8.3/8.4 everywhere

Hackwar
executed scheduled task
nightly-build-3-x

Pipeline stages

6 stages

Console Logs

81 207 Call to an undefined method Joomla\Filesystem\Stream::getError(). 11s
82 🪪 method.notFound 11s
83 239 Parameter #1 $seconds of function set_time_limit expects int, string 11s
84 given. 11s
85 🪪 argument.type 11s
86 301 Call to an undefined method Joomla\Filesystem\Stream::getError(). 11s
87 🪪 method.notFound 11s
88 ------ ---------------------------------------------------------------------- 11s
89 11s
90 ------ ---------------------------------------------------------------------- 11s
91 Line Folder.php 11s
92 ------ ---------------------------------------------------------------------- 11s
93 38 Parameter #1 $seconds of function set_time_limit expects int, string 11s
94 given. 11s
95 🪪 argument.type 11s
96 75 Parameter #3 $path of static method Joomla\Filesystem\Folder::copy() 11s
97 expects string, null given. 11s
98 🪪 argument.type 11s
99 214 Parameter #1 $seconds of function set_time_limit expects int, string 11s
100 given. 11s
101 🪪 argument.type 11s
102 441 Parameter #1 $seconds of function set_time_limit expects int, string 11s
103 given. 11s
104 🪪 argument.type 11s
105 523 Constant JPATH_ROOT not found. 11s
106 🪪 constant.notFound 11s
107 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols 11s
108 ------ ---------------------------------------------------------------------- 11s
109 11s
110 ------ --------------------------------------------------------------------- 11s
111 Line Helper.php 11s
112 ------ --------------------------------------------------------------------- 11s
113 40 Parameter #2 $associative of function get_headers expects bool, int 11s
114 given. 11s
115 🪪 argument.type 11s
116 ------ --------------------------------------------------------------------- 11s
117 11s
118 ------ ------------------------------------------------------------------------------ 11s
119 Line Patcher.php 11s
120 ------ ------------------------------------------------------------------------------ 11s
121 112 Static property Joomla\Filesystem\Patcher::$instance 11s
122 (Joomla\Filesystem\Patcher) in isset() is not nullable. 11s
123 🪪 isset.property 11s
124 113 Unsafe usage of new static(). 11s
125 🪪 new.static 11s
126 💡 See: 11s
127 https://phpstan.org/blog/solving-phpstan-error-unsafe-usage-of-new-static 11s
128 247 Variable $root in isset() always exists and is not nullable. 11s
129 🪪 isset.variable 11s
130 298 Variable $m might not be defined. 11s
131 🪪 variable.undefined 11s
132 344 Parameter &$srcLine by-ref type of method 11s
133 Joomla\Filesystem\Patcher::findHunk() expects string, int given. 11s
134 🪪 parameterByRef.type 11s
135 💡 You can change the parameter out type with @param-out PHPDoc 11s
136 tag. 11s
137 347 Parameter &$srcSize by-ref type of method 11s
138 Joomla\Filesystem\Patcher::findHunk() expects string, int given. 11s
139 🪪 parameterByRef.type 11s
140 💡 You can change the parameter out type with @param-out PHPDoc 11s
141 tag. 11s
142 349 Parameter &$srcSize by-ref type of method 11s
143 Joomla\Filesystem\Patcher::findHunk() expects string, int given. 11s
144 🪪 parameterByRef.type 11s
145 💡 You can change the parameter out type with @param-out PHPDoc 11s
146 tag. 11s
147 352 Parameter &$dstLine by-ref type of method 11s
148 Joomla\Filesystem\Patcher::findHunk() expects string, int given. 11s
149 🪪 parameterByRef.type 11s
150 💡 You can change the parameter out type with @param-out PHPDoc 11s
151 tag. 11s
152 355 Parameter &$dstSize by-ref type of method 11s
153 Joomla\Filesystem\Patcher::findHunk() expects string, int given. 11s
154 🪪 parameterByRef.type 11s
155 💡 You can change the parameter out type with @param-out PHPDoc 11s
156 tag. 11s
157 357 Parameter &$dstSize by-ref type of method 11s
158 Joomla\Filesystem\Patcher::findHunk() expects string, int given. 11s
159 🪪 parameterByRef.type 11s
160 💡 You can change the parameter out type with @param-out PHPDoc 11s
161 tag. 11s
162 433 Variable $srcLines in isset() always exists and is not nullable. 11s
163 🪪 isset.variable 11s
164 446 Variable $srcLines might not be defined. 11s
165 🪪 variable.undefined 11s
166 ------ ------------------------------------------------------------------------------ 11s
167 11s
168 ------ --------------------------------------------------------------------- 11s
169 Line Path.php 11s
170 ------ --------------------------------------------------------------------- 11s
171 78 Variable $filemode in isset() always exists and is not nullable. 11s
172 🪪 isset.variable 11s
173 90 Variable $foldermode in isset() always exists and is not nullable. 11s
174 🪪 isset.variable 11s
175 96 Variable $filemode in isset() always exists and is not nullable. 11s
176 🪪 isset.variable 11s
177 128 Binary operation "&" between non-empty-string and 4 results in an 11s
178 error. 11s
179 🪪 binaryOp.invalid 11s
180 131 Binary operation "&" between non-empty-string and 2 results in an 11s
181 error. 11s
182 🪪 binaryOp.invalid 11s
183 134 Binary operation "&" between non-empty-string and 1 results in an 11s
184 error. 11s
185 🪪 binaryOp.invalid 11s
186 197 Call to function is_string() with non-empty-string will always 11s
187 evaluate to true. 11s
188 🪪 function.alreadyNarrowedType 11s
189 💡 Because the type is coming from a PHPDoc, you can turn off this 11s
190 check by setting treatPhpDocTypesAsCertain: false in your 11s
191 phpstan.neon. 11s
192 362 Constant JPATH_ROOT not found. 11s
193 🪪 constant.notFound 11s
194 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols 11s
195 ------ --------------------------------------------------------------------- 11s
196 11s
197 ------ ------------------------------------------------------------------------------ 11s
198 Line Stream.php 11s
199 ------ ------------------------------------------------------------------------------ 11s
200 163 If condition is always true. 11s
201 🪪 if.alwaysTrue 11s
202 💡 Because the type is coming from a PHPDoc, you can turn off this 11s
203 check by setting treatPhpDocTypesAsCertain: false in your 11s
204 phpstan.neon. 11s
205 189 Constant JPATH_ROOT not found. 11s
206 🪪 constant.notFound 11s
207 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols 11s
208 189 Constant JPATH_ROOT not found. 11s
209 🪪 constant.notFound 11s
210 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols 11s
211 189 Unsafe usage of new static(). 11s
212 🪪 new.static 11s
213 💡 See: 11s
214 https://phpstan.org/blog/solving-phpstan-error-unsafe-usage-of-new-static 11s
215 192 Unsafe usage of new static(). 11s
216 🪪 new.static 11s
217 💡 See: 11s
218 https://phpstan.org/blog/solving-phpstan-error-unsafe-usage-of-new-static 11s
219 281 Parameter #3 $use_include_path of function gzopen expects int, bool 11s
220 given. 11s
221 🪪 argument.type 11s
222 299 Parameter #4 $context of function fopen expects resource|null, string 11s
223 given. 11s
224 🪪 argument.type 11s
225 338 Negated boolean expression is always false. 11s
226 🪪 booleanNot.alwaysFalse 11s
227 💡 Because the type is coming from a PHPDoc, you can turn off this 11s
228 check by setting treatPhpDocTypesAsCertain: false in your 11s
229 phpstan.neon. 11s
230 377 Property Joomla\Filesystem\Stream::$fh (resource) does not accept 11s
231 null. 11s
232 🪪 assign.propertyType 11s
233 398 Negated boolean expression is always false. 11s
234 🪪 booleanNot.alwaysFalse 11s
235 💡 Because the type is coming from a PHPDoc, you can turn off this 11s
236 check by setting treatPhpDocTypesAsCertain: false in your 11s
237 phpstan.neon. 11s
238 483 Negated boolean expression is always false. 11s
239 🪪 booleanNot.alwaysFalse 11s
240 💡 Because the type is coming from a PHPDoc, you can turn off this 11s
241 check by setting treatPhpDocTypesAsCertain: false in your 11s
242 phpstan.neon. 11s
243 536 Negated boolean expression is always false. 11s
244 🪪 booleanNot.alwaysFalse 11s
245 💡 Because the type is coming from a PHPDoc, you can turn off this 11s
246 check by setting treatPhpDocTypesAsCertain: false in your 11s
247 phpstan.neon. 11s
248 544 Negated boolean expression is always true. 11s
249 🪪 booleanNot.alwaysTrue 11s
250 628 Negated boolean expression is always false. 11s
251 🪪 booleanNot.alwaysFalse 11s
252 💡 Because the type is coming from a PHPDoc, you can turn off this 11s
253 check by setting treatPhpDocTypesAsCertain: false in your 11s
254 phpstan.neon. 11s
255 677 Negated boolean expression is always false. 11s
256 🪪 booleanNot.alwaysFalse 11s
257 💡 Because the type is coming from a PHPDoc, you can turn off this 11s
258 check by setting treatPhpDocTypesAsCertain: false in your 11s
259 phpstan.neon. 11s
260 739 Negated boolean expression is always false. 11s
261 🪪 booleanNot.alwaysFalse 11s
262 💡 Because the type is coming from a PHPDoc, you can turn off this 11s
263 check by setting treatPhpDocTypesAsCertain: false in your 11s
264 phpstan.neon. 11s
265 812 Property Joomla\Filesystem\Stream::$filename (string) in isset() is 11s
266 not nullable. 11s
267 🪪 isset.property 11s
268 871 Negated boolean expression is always false. 11s
269 🪪 booleanNot.alwaysFalse 11s
270 💡 Because the type is coming from a PHPDoc, you can turn off this 11s
271 check by setting treatPhpDocTypesAsCertain: false in your 11s
272 phpstan.neon. 11s
273 890 Property Joomla\Filesystem\Stream::$context (string) does not accept 11s
274 resource. 11s
275 🪪 assign.propertyType 11s
276 892 Property Joomla\Filesystem\Stream::$context (string) does not accept 11s
277 null. 11s
278 🪪 assign.propertyType 11s
279 979 If condition is always true. 11s
280 🪪 if.alwaysTrue 11s
281 💡 Because the type is coming from a PHPDoc, you can turn off this 11s
282 check by setting treatPhpDocTypesAsCertain: false in your 11s
283 phpstan.neon. 11s
284 1020 If condition is always true. 11s
285 🪪 if.alwaysTrue 11s
286 💡 Because the type is coming from a PHPDoc, you can turn off this 11s
287 check by setting treatPhpDocTypesAsCertain: false in your 11s
288 phpstan.neon. 11s
289 1057 If condition is always true. 11s
290 🪪 if.alwaysTrue 11s
291 💡 Because the type is coming from a PHPDoc, you can turn off this 11s
292 check by setting treatPhpDocTypesAsCertain: false in your 11s
293 phpstan.neon. 11s
294 1096 Invalid array key type resource. 11s
295 🪪 offsetAccess.invalidOffset 11s
296 1149 Parameter #3 $context of function copy expects resource|null, string 11s
297 given. 11s
298 🪪 argument.type 11s
299 1195 Parameter #3 $context of function rename expects resource|null, 11s
300 string given. 11s
301 🪪 argument.type 11s
302 1244 Parameter #2 $context of function unlink expects resource|null, 11s
303 string given. 11s
304 🪪 argument.type 11s
305 1357 Constant JPATH_ROOT not found. 11s
306 🪪 constant.notFound 11s
307 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols 11s
308 1360 Constant JPATH_ROOT not found. 11s
309 🪪 constant.notFound 11s
310 💡 Learn more at https://phpstan.org/user-guide/discovering-symbols 11s
311 1379 Method Joomla\Filesystem\Stream::getFileHandle() should return 11s
312 Joomla\Filesystem\File but returns resource. 11s
313 🪪 return.type 11s
314 ------ ------------------------------------------------------------------------------ 11s
315 11s
316 ------ --------------------------------------------------------------------- 11s
317 Line Stream/StringWrapper.php 11s
318 ------ --------------------------------------------------------------------- 11s
319 107 Property Joomla\Filesystem\Stream\StringWrapper::$len (string) does 11s
320 not accept int<0, max>. 11s
321 🪪 assign.propertyType 11s
322 179 Property Joomla\Filesystem\Stream\StringWrapper::$pos (int) on left 11s
323 side of ?? is not nullable. 11s
324 🪪 nullCoalesce.property 11s
325 263 Binary operation "-" between string and int results in an error. 11s
326 🪪 binaryOp.invalid 11s
327 ------ --------------------------------------------------------------------- 11s
328 11s
329 [ERROR] Found 84 errors 11s
330 11s
Exit Code 1