-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Open
Description
Description
Hello all,
I suppose that were discussed in internal since ages, but as SF8 has PHP8.4 as minimum version, have you considered moving some interfaces from methods to properties?
Example
For example for a common User Entity that implements UserInterface & PasswordAuthenticatedUserInterface
- replace
getRoles()bypublic array $roles { get; } - replace
getPassword()bypublic string $password { get; }
My 2 cents: I would not recommend this migration for every interfaced method in the world, but it makes sense for DTOs as you may want to push properties over methods in those objects.
Metadata
Metadata
Assignees
Labels
No labels