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