nette / forms

📝 Generating, validating and processing secure forms in PHP. Handy API, fully customizable, server & client side validation and mature design.

Home Page:https://doc.nette.org/forms

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use constructor of mapped type with readonly parameters

SendiMyrkr opened this issue · comments

I think that there should be condition in here https://github.com/nette/forms/blob/master/src/Forms/Container.php#L144 extended for readonly class(PHP 8.2+) and readonly parameters(properties) no matter if parameters are optional or not.

Can you elaborate more?