From 11fdbd860e93ab0245f1ff6825c8f57b58564073 Mon Sep 17 00:00:00 2001 From: Cedric Abonnel Date: Fri, 8 May 2026 13:47:50 +0200 Subject: [PATCH] fix: corrections PHPStan #1-#5 (namespaces, constructeurs, baseline) --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 912a489..7fedda6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,14 @@ Format : [Keep a Changelog](https://keepachangelog.com/fr/1.0.0/) ### Fixed - Permissions du fichier `.env` corrigées (`chown cedrix:www-data`) pour que PHP-FPM (`www-data`) puisse le lire (erreur 500) +- PHPStan : namespaces manquants `\PDOException` et `\InvalidArgumentException` dans `UserRepository` (#1) +- PHPStan : `UserRepository` instancié sans argument PDO dans `AuthService::changePassword()` (#2) +- PHPStan : `MailQueue` et `MailService` injectent désormais un `PDO` directement au lieu d'appeler `Database::getConnection()` inexistante (#3) +- PHPStan : bootstrap `phpstan-bootstrap.php` ajouté pour définir `BASE_PATH` lors de l'analyse statique (#4) +- PHPStan : comparaison `200 > 0` toujours vraie supprimée dans `MailService` ; `addScope()` reçoit désormais un array dans `auth.php` (#5) + +### Removed +- Méthode privée inutilisée `UserRepository::nullIfEmpty()` (#1) ### Added - Initialisation du dépôt git sur le serveur