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