[PHPStan] Méthode Database::getConnection() inexistante #3
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?
Erreurs PHPStan détectées
src/Service/MailQueue.php:38—Call to an undefined method App\\Infrastructure\\Database::getConnection()src/Service/MailService.php:57— idemCause
Les services appellent
Database::getConnection()mais cette méthode n'existe pas danssrc/Infrastructure/Database.php.Correction
Soit ajouter la méthode
getConnection()àDatabase, soit remplacer l'appel par la méthode existante.Détecté par PHPStan level 5 — baseline commit
70304d3