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