mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
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.
This commit is contained in:
parent
3f5ce5f841
commit
8521672660
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user