Skip to content

Enhancement 7123: add rule for subscribers output #2620

Enhancement 7123: add rule for subscribers output

Enhancement 7123: add rule for subscribers output #2620

Triggered via pull request November 28, 2024 13:44
Status Failure
Total duration 1m 40s
Artifacts

lint_phpstan.yml

on: pull_request
Matrix: run
Fit to window
Zoom out
Zoom in

Annotations

6 errors
WPRocket lint with PHP Stan. PHP 8.2 on ubuntu-latest.: tests/phpstan/Rules/EnsureCallbackMethodsExistsInSubscribedEvents.php#L31
Instanceof between PhpParser\Node\ArrayItem and PhpParser\Node\Expr\ArrayItem will always evaluate to false.
WPRocket lint with PHP Stan. PHP 8.2 on ubuntu-latest.: tests/phpstan/Rules/EnsureCallbackMethodsExistsInSubscribedEvents.php#L63
Instanceof between PhpParser\Node\ArrayItem and PhpParser\Node\Expr\ArrayItem will always evaluate to false.
WPRocket lint with PHP Stan. PHP 8.2 on ubuntu-latest.: tests/phpstan/Rules/EnsureSubscribedEventsOutPutValid.php#L37
Method WP_Rocket\Tests\phpstan\Rules\EnsureSubscribedEventsOutPutValid::processNode() should return list<PHPStan\Rules\IdentifierRuleError> but returns array{PHPStan\Rules\RuleError}.
WPRocket lint with PHP Stan. PHP 8.2 on ubuntu-latest.: tests/phpstan/Rules/EnsureSubscribedEventsOutPutValid.php#L44
Instanceof between PhpParser\Node\ArrayItem and PhpParser\Node\Expr\ArrayItem will always evaluate to false.
WPRocket lint with PHP Stan. PHP 8.2 on ubuntu-latest.
Process completed with exit code 1.