From 5a7bba83f7f3ef208eb37f0bcda3c66e230fb487 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 8 Apr 2025 17:30:08 +0200 Subject: [PATCH] Ignore PHPStan warning for deprecated method usage Added a PHPStan ignore comment to bypass warnings for calling a deprecated method, which remains necessary for compatibility. This ensures functionality while avoiding static analysis issues. --- src/Bundle/ChillMainBundle/Export/ExportGenerator.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Bundle/ChillMainBundle/Export/ExportGenerator.php b/src/Bundle/ChillMainBundle/Export/ExportGenerator.php index 272aa0a2f..02b21029d 100644 --- a/src/Bundle/ChillMainBundle/Export/ExportGenerator.php +++ b/src/Bundle/ChillMainBundle/Export/ExportGenerator.php @@ -116,6 +116,7 @@ final readonly class ExportGenerator trigger_deprecation('chill-project/chill-bundles', '3.10', '%s should implements the "generate" method', FormatterInterface::class); + /* @phpstan-ignore-next-line this is a deprecated method that we must still call */ $generatedExport = $formatter->getResponse( $result, $data['formatter'],