Skip to content

Add static analysis with phpstan #227

Add static analysis with phpstan

Add static analysis with phpstan #227

Triggered via pull request February 13, 2026 17:43
@stofstof
synchronize #3095
stof:phpstan
Status Failure
Total duration 26s
Artifacts

ci.yaml

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

Annotations

4 errors
PHPStan
Process completed with exit code 1.
PHPStan: src/Model/User.php#L198
Method FOS\UserBundle\Model\User::getUserIdentifier() should return non-empty-string but returns string.
PHPStan: src/Model/User.php#L159
Method FOS\UserBundle\Model\User::serialize() never returns null so it can be removed from the return type.
PHPStan: src/EventListener/FlashListener.php#L85
Method FOS\UserBundle\EventListener\FlashListener::getSession() should return Symfony\Component\HttpFoundation\Session\Session but returns Symfony\Component\HttpFoundation\Session\SessionInterface.