-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Infer type for builder getData #371
Conversation
assertType('GenericFormDataType\DataClass|null', $builder->getData()); | ||
assertType('GenericFormDataType\DataClass|null', $builder->getForm()->getData()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately this can be null
for embedded form, cf
symfony/symfony#5694
symfony/symfony#28741
https://stackoverflow.com/questions/21862168/calling-builder-getdata-from-within-a-nested-form-always-returns-null
2cbcee7
to
ee0e67c
Compare
Thank you for continuing this! Tighten form types are so great, LGTM. |
So I think it's ready for your review @ondrejmirtes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please base this on 1.3.x
108e0b2
to
e147b54
Compare
Done |
Thank you. |
I tried to continue the PR #337
cc @siketyan, do you think this change is ok ?