[PHPStan] UserRepository instancié sans argument dans AuthService #2
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Erreur PHPStan détectée
Fichier :
src/Service/AuthService.php:79Cause
new UserRepository()est appelé sans passer la dépendance requise par le constructeur (probablement$dbou$pdo).Correction
Passer l'argument manquant :
new UserRepository($db).Détecté par PHPStan level 5 — baseline commit
70304d3