From 8521672660f4486ced1f69752082f23123e0c003 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Fri, 25 Apr 2025 11:29:19 +0200 Subject: [PATCH] Make Security dependency readonly in SavedExportType Marking the Security property as readonly ensures it cannot be reassigned after initialization. This enforces immutability, improving code safety and clarity. --- src/Bundle/ChillMainBundle/Form/SavedExportType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bundle/ChillMainBundle/Form/SavedExportType.php b/src/Bundle/ChillMainBundle/Form/SavedExportType.php index 7de44d5c9..beccfbd19 100644 --- a/src/Bundle/ChillMainBundle/Form/SavedExportType.php +++ b/src/Bundle/ChillMainBundle/Form/SavedExportType.php @@ -23,7 +23,7 @@ use Symfony\Component\Security\Core\Security; class SavedExportType extends AbstractType { - public function __construct(private Security $security) {} + public function __construct(private readonly Security $security) {} public function buildForm(FormBuilderInterface $builder, array $options) {