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