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