Skip to content

test: Align all phpstan.neon levels #285

test: Align all phpstan.neon levels

test: Align all phpstan.neon levels #285

Triggered via push March 12, 2024 20:43
Status Failure
Total duration 2m 22s
Artifacts

run-test.yml

on: push
Matrix: static-analysis-tests
Fit to window
Zoom out
Zoom in

Annotations

23 errors and 1 warning
static-analysis-tests (8.3): src/Api/Filter/ArchiveFilter.php#L34
Unreachable statement - code above always terminates.
static-analysis-tests (8.3): src/Api/ListManager/SolrPaginator.php#L69
Unreachable statement - code above always terminates.
static-analysis-tests (8.3): src/Console/NodesOrphansCommand.php#L71
Else branch is unreachable because ternary operator condition is always true.
static-analysis-tests (8.3): src/Message/Handler/SearchRealmNodeInheritanceMessageHandler.php#L68
Else branch is unreachable because ternary operator condition is always true.
static-analysis-tests (8.3): src/Message/Handler/SearchRealmNodeInheritanceMessageHandler.php#L93
Else branch is unreachable because ternary operator condition is always true.
static-analysis-tests (8.3): src/Routing/NodeRouter.php#L66
Method RZ\Roadiz\CoreBundle\Routing\NodeRouter::getMatcher() should return Symfony\Component\Routing\Matcher\UrlMatcherInterface but returns Symfony\Component\Routing\Matcher\RequestMatcherInterface|Symfony\Component\Routing\Matcher\UrlMatcherInterface.
static-analysis-tests (8.3): src/Security/Authentication/RoadizAuthenticator.php#L57
Access to undefined constant Symfony\Bundle\SecurityBundle\Security::LAST_USERNAME.
static-analysis-tests (8.3): src/Security/Authentication/RoadizAuthenticator.php#L120
Access to undefined constant Symfony\Bundle\SecurityBundle\Security::MAX_USERNAME_LENGTH.
static-analysis-tests (8.3): src/Security/Authorization/Voter/NodeVoter.php#L94
Instanceof between RZ\Roadiz\CoreBundle\Entity\Node and RZ\Roadiz\CoreBundle\Entity\NodesSources will always evaluate to false.
static-analysis-tests (8.3): src/Security/Authorization/Voter/NodeVoter.php#L114
Match arm is unreachable because previous comparison is always true.
static-analysis-tests (8.1)
The job was canceled because "_8_3" failed.
static-analysis-tests (8.1)
The operation was canceled.
static-analysis-tests (8.2)
The job was canceled because "_8_3" failed.
static-analysis-tests (8.2): src/Api/Filter/ArchiveFilter.php#L34
Unreachable statement - code above always terminates.
static-analysis-tests (8.2): src/Api/ListManager/SolrPaginator.php#L69
Unreachable statement - code above always terminates.
static-analysis-tests (8.2): src/Console/NodesOrphansCommand.php#L71
Else branch is unreachable because ternary operator condition is always true.
static-analysis-tests (8.2): src/Message/Handler/SearchRealmNodeInheritanceMessageHandler.php#L68
Else branch is unreachable because ternary operator condition is always true.
static-analysis-tests (8.2): src/Message/Handler/SearchRealmNodeInheritanceMessageHandler.php#L93
Else branch is unreachable because ternary operator condition is always true.
static-analysis-tests (8.2): src/Routing/NodeRouter.php#L66
Method RZ\Roadiz\CoreBundle\Routing\NodeRouter::getMatcher() should return Symfony\Component\Routing\Matcher\UrlMatcherInterface but returns Symfony\Component\Routing\Matcher\RequestMatcherInterface|Symfony\Component\Routing\Matcher\UrlMatcherInterface.
static-analysis-tests (8.2): src/Security/Authentication/RoadizAuthenticator.php#L57
Access to undefined constant Symfony\Bundle\SecurityBundle\Security::LAST_USERNAME.
static-analysis-tests (8.2): src/Security/Authentication/RoadizAuthenticator.php#L120
Access to undefined constant Symfony\Bundle\SecurityBundle\Security::MAX_USERNAME_LENGTH.
static-analysis-tests (8.2): src/Security/Authorization/Voter/NodeVoter.php#L94
Instanceof between RZ\Roadiz\CoreBundle\Entity\Node and RZ\Roadiz\CoreBundle\Entity\NodesSources will always evaluate to false.
static-analysis-tests (8.2): src/Security/Authorization/Voter/NodeVoter.php#L114
Match arm is unreachable because previous comparison is always true.
static-analysis-tests (8.3)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.