0m 21s
Feb 1, 2025, 12:02 AM

utilities

Updating phpstan to 2.0 (#47) * 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

1+ ./vendor/bin/phpstan 0s
2Note: Using configuration file /drone/src/phpstan.neon. 0s
3 0/3 [░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 0% 3/3 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100% 4s
4 4s
5 ------ ---------------------------------------------------------------------- 4s
6 Line ArrayHelper.php 4s
7 ------ ---------------------------------------------------------------------- 4s
8 42 Call to function is_array() with array will always evaluate to true. 4s
9 🪪 function.alreadyNarrowedType 4s
10 💡 Because the type is coming from a PHPDoc, you can turn off this 4s
11 check by setting treatPhpDocTypesAsCertain: false in your 4s
12 phpstan.neon. 4s
13 46 Unreachable statement - code above always terminates. 4s
14 🪪 deadCode.unreachable 4s
15 128 Call to function is_array() with *NEVER* will always evaluate to 4s
16 true. 4s
17 🪪 function.alreadyNarrowedType 4s
18 💡 Because the type is coming from a PHPDoc, you can turn off this 4s
19 check by setting treatPhpDocTypesAsCertain: false in your 4s
20 phpstan.neon. 4s
21 128 Call to function is_object() with object will always evaluate to 4s
22 true. 4s
23 🪪 function.alreadyNarrowedType 4s
24 💡 Because the type is coming from a PHPDoc, you can turn off this 4s
25 check by setting treatPhpDocTypesAsCertain: false in your 4s
26 phpstan.neon. 4s
27 128 Result of || is always true. 4s
28 🪪 booleanOr.alwaysTrue 4s
29 💡 Because the type is coming from a PHPDoc, you can turn off this 4s
30 check by setting treatPhpDocTypesAsCertain: false in your 4s
31 phpstan.neon. 4s
32 132 Unreachable statement - code above always terminates. 4s
33 🪪 deadCode.unreachable 4s
34 174 Method Joomla\Utilities\ArrayHelper::arrayFromObject() should return 4s
35 array but returns mixed. 4s
36 🪪 return.type 4s
37 💡 Type array<mixed, mixed>|object has already been eliminated from 4s
38 mixed. 4s
39 210 Variable $colName in isset() always exists and is not nullable. 4s
40 🪪 isset.variable 4s
41 214 Variable $colName in isset() always exists and is not nullable. 4s
42 🪪 isset.variable 4s
43 277 Strict comparison using === between string and null will always 4s
44 evaluate to false. 4s
45 🪪 identical.alwaysFalse 4s
46 💡 Because the type is coming from a PHPDoc, you can turn off this 4s
47 check by setting treatPhpDocTypesAsCertain: false in your 4s
48 phpstan.neon. 4s
49 314 Instanceof between ArrayAccess and ArrayAccess will always evaluate 4s
50 to true. 4s
51 🪪 instanceof.alwaysTrue 4s
52 💡 Because the type is coming from a PHPDoc, you can turn off this 4s
53 check by setting treatPhpDocTypesAsCertain: false in your 4s
54 phpstan.neon. 4s
55 314 Result of && is always false. 4s
56 🪪 booleanAnd.alwaysFalse 4s
57 💡 Because the type is coming from a PHPDoc, you can turn off this 4s
58 check by setting treatPhpDocTypesAsCertain: false in your 4s
59 phpstan.neon. 4s
60 443 Call to function is_array() with array will always evaluate to true. 4s
61 🪪 function.alreadyNarrowedType 4s
62 💡 Because the type is coming from a PHPDoc, you can turn off this 4s
63 check by setting treatPhpDocTypesAsCertain: false in your 4s
64 phpstan.neon. 4s
65 561 Variable $caseSensitive might not be defined. 4s
66 🪪 variable.undefined 4s
67 562 Variable $locale might not be defined. 4s
68 🪪 variable.undefined 4s
69 564 Variable $locale might not be defined. 4s
70 🪪 variable.undefined 4s
71 568 Variable $direction might not be defined. 4s
72 🪪 variable.undefined 4s
73 572 Variable $direction might not be defined. 4s
74 🪪 variable.undefined 4s
75 675 Call to function is_array() with array will always evaluate to true. 4s
76 🪪 function.alreadyNarrowedType 4s
77 💡 Because the type is coming from a PHPDoc, you can turn off this 4s
78 check by setting treatPhpDocTypesAsCertain: false in your 4s
79 phpstan.neon. 4s
80 ------ ---------------------------------------------------------------------- 4s
81 4s
82 ------ ------------------------------------------------------------------ 4s
83 Line IpHelper.php 4s
84 ------ ------------------------------------------------------------------ 4s
85 232 Parameter #3 $length of function substr expects int|null, 4s
86 float|string given. 4s
87 🪪 argument.type 4s
88 233 Parameter #3 $length of function substr expects int|null, 4s
89 float|string given. 4s
90 🪪 argument.type 4s
91 295 Variable $netmask might not be defined. 4s
92 🪪 variable.undefined 4s
93 307 Ternary operator condition is always false. 4s
94 🪪 ternary.alwaysFalse 4s
95 311 Parameter #3 $length of function substr expects int|null, float 4s
96 given. 4s
97 🪪 argument.type 4s
98 312 Parameter #3 $length of function substr expects int|null, float 4s
99 given. 4s
100 🪪 argument.type 4s
101 419 Variable $_SERVER in isset() always exists and is not nullable. 4s
102 🪪 isset.variable 4s
103 509 Parameter #3 $length of function substr expects int|null, string 4s
104 given. 4s
105 🪪 argument.type 4s
106 510 Parameter #3 $length of function substr expects int|null, string 4s
107 given. 4s
108 🪪 argument.type 4s
109 ------ ------------------------------------------------------------------ 4s
110 4s
111 [ERROR] Found 28 errors 4s
112 4s
Exit Code 1