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