Skip to content

Mark immutable promoted properties as readonly#7708

Merged
javiereguiluz merged 1 commit into
EasyCorp:5.xfrom
guillaume-sainthillier:mark-promoted-properties-readonly
Jul 21, 2026
Merged

Mark immutable promoted properties as readonly#7708
javiereguiluz merged 1 commit into
EasyCorp:5.xfrom
guillaume-sainthillier:mark-promoted-properties-readonly

Conversation

@guillaume-sainthillier

Copy link
Copy Markdown
Contributor

Also removes the one redundant 'readonly' modifier in ActionFactory,
which is already a readonly class.

Also removes the one redundant 'readonly' modifier in ActionFactory,
which is already a readonly class.
@guillaume-sainthillier
guillaume-sainthillier force-pushed the mark-promoted-properties-readonly branch from 77358fa to 1d72551 Compare July 13, 2026 07:33
@javiereguiluz
javiereguiluz merged commit acf774b into EasyCorp:5.x Jul 21, 2026
16 checks passed

@javiereguiluz javiereguiluz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another nice change. Thanks Guillaume!

{
public function __construct(
private EntityTranslationIdGeneratorInterface $entityTranslationIdGenerator,
private readonly EntityTranslationIdGeneratorInterface $entityTranslationIdGenerator,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I marked the entire CommonConfigurator class as readonly

{
public function __construct(
private AdminUrlGeneratorInterface $adminUrlGenerator,
private readonly AdminUrlGeneratorInterface $adminUrlGenerator,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I marked the entire EntityConfigurator class as readonly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants