Skip to content

Add ForbiddenReadonlyRule to prevent readonly on components - #24

Merged
Kocal merged 1 commit into
mainfrom
feature/forbid-readonly-property-rule
Feb 17, 2026
Merged

Kocal merged 1 commit into
mainfrom
feature/forbid-readonly-property-rule

Conversation

@Kocal

@Kocal Kocal commented Feb 17, 2026

Copy link
Copy Markdown
Owner

Forbid the use of `readonly` on Twig/Live Component classes and
properties, except for constructor-promoted properties (injected
services). This ensures the TwigComponent system can set prop values
after instantiation.
@Kocal Kocal self-assigned this Feb 17, 2026
@Kocal
Kocal merged commit 4b1d8d5 into main Feb 17, 2026
8 checks passed
@Kocal
Kocal deleted the feature/forbid-readonly-property-rule branch February 17, 2026 10:05
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.

1 participant