[PHPStan] Méthode Database::getConnection() inexistante #3

Closed
opened 2026-05-08 11:20:52 +00:00 by cedricAbonnel · 0 comments
Owner

Erreurs PHPStan détectées

  • src/Service/MailQueue.php:38Call to an undefined method App\\Infrastructure\\Database::getConnection()
  • src/Service/MailService.php:57 — idem

Cause

Les services appellent Database::getConnection() mais cette méthode n'existe pas dans src/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

## Erreurs PHPStan détectées - `src/Service/MailQueue.php:38` — `Call to an undefined method App\\Infrastructure\\Database::getConnection()` - `src/Service/MailService.php:57` — idem ## Cause Les services appellent `Database::getConnection()` mais cette méthode n'existe pas dans `src/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_
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: cedricAbonnel/varlog#3