0m 45s
Feb 2, 2025, 12:02 AM

profiler

Updating phpstan to 2.0 (#14) * 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 1s
2Note: Using configuration file /drone/src/phpstan.neon. 1s
3 0/6 [░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 0% 6/6 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100% 3s
4 3s
5 ------ ---------------------------------------------------------------------- 4s
6 Line Profiler.php 4s
7 ------ ---------------------------------------------------------------------- 4s
8 123 Instanceof between Joomla\Profiler\ProfilePointInterface and 4s
9 Joomla\Profiler\ProfilePointInterface will always evaluate to true. 4s
10 🪪 instanceof.alwaysTrue 4s
11 💡 Because the type is coming from a PHPDoc, you can turn off this 4s
12 check by setting treatPhpDocTypesAsCertain: false in your 4s
13 phpstan.neon. 4s
14 413 Return type mixed of method Joomla\Profiler\Profiler::getIterator() 4s
15 is not covariant with tentative return type Traversable of method 4s
16 IteratorAggregate<mixed,mixed>::getIterator(). 4s
17 💡 Make it covariant, or use the #[\ReturnTypeWillChange] attribute 4s
18 to temporarily suppress the error. 4s
19 425 Return type mixed of method Joomla\Profiler\Profiler::count() is not 4s
20 covariant with tentative return type int of method 4s
21 Countable::count(). 4s
22 💡 Make it covariant, or use the #[\ReturnTypeWillChange] attribute 4s
23 to temporarily suppress the error. 4s
24 ------ ---------------------------------------------------------------------- 4s
25 4s
26 ------ -------------------------------------------------------------------- 4s
27 Line Renderer/DefaultRenderer.php 4s
28 ------ -------------------------------------------------------------------- 4s
29 36 PHPDoc tag @var with type Joomla\Profiler\ProfilePointInterface is 4s
30 not subtype of native type null. 4s
31 🪪 varTag.nativeType 4s
32 41 Ternary operator condition is always true. 4s
33 🪪 ternary.alwaysTrue 4s
34 💡 Because the type is coming from a PHPDoc, you can turn off this 4s
35 check by setting treatPhpDocTypesAsCertain: false in your 4s
36 phpstan.neon. 4s
37 42 Ternary operator condition is always true. 4s
38 🪪 ternary.alwaysTrue 4s
39 💡 Because the type is coming from a PHPDoc, you can turn off this 4s
40 check by setting treatPhpDocTypesAsCertain: false in your 4s
41 phpstan.neon. 4s
42 ------ -------------------------------------------------------------------- 4s
43 4s
44 [ERROR] Found 6 errors 4s
45 4s
Exit Code 1