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