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