Skip to content

Add static analysis with phpstan #225

Add static analysis with phpstan

Add static analysis with phpstan #225

Triggered via pull request February 10, 2026 14:19
@stofstof
synchronize #3095
stof:phpstan
Status Failure
Total duration 27s
Artifacts

ci.yaml

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

Annotations

10 errors
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.
PHPStan: src/Event/FormEvent.php#L60
Method FOS\UserBundle\Event\FormEvent::getResponse() never returns null so it can be removed from the return type.
PHPStan: src/Doctrine/UserManager.php#L83
Method FOS\UserBundle\Doctrine\UserManager::updateUser() has parameter $andFlush with no type specified.
PHPStan: src/Doctrine/UserManager.php#L62
Method FOS\UserBundle\Doctrine\UserManager::getClass() should return class-string<FOS\UserBundle\Model\UserInterface> but returns string.
PHPStan: src/Doctrine/UserManager.php#L58
Unable to resolve the template type T in call to method Doctrine\Persistence\ObjectManager::getClassMetadata()
PHPStan: src/Doctrine/UserManager.php#L58
Parameter #1 $className of method Doctrine\Persistence\ObjectManager::getClassMetadata() expects class-string<object>, string given.
PHPStan: src/Doctrine/UserListener.php#L100
Call to method getUnitOfWork() on an unknown class Doctrine\ODM\MongoDB\DocumentManager.
PHPStan: src/Doctrine/UserListener.php#L99
Call to method getClassMetadata() on an unknown class Doctrine\ODM\MongoDB\DocumentManager.
PHPStan: src/Doctrine/UserListener.php#L98
Class Doctrine\ODM\MongoDB\DocumentManager not found.
PHPStan: src/Controller/ResettingController.php#L76
Parameter #1 $usernameOrEmail of method FOS\UserBundle\Model\UserManagerInterface::findUserByUsernameOrEmail() expects string, bool|float|int|string|null given.