-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Form] Change FormTypeValidatorExtension construct signature #49502
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
base: 7.4
Are you sure you want to change the base?
[Form] Change FormTypeValidatorExtension construct signature #49502
Conversation
src/Symfony/Component/Form/Extension/Validator/Type/FormTypeValidatorExtension.php
Outdated
Show resolved
Hide resolved
c74bc36
to
43f04bb
Compare
src/Symfony/Component/Form/Extension/Validator/Type/FormTypeValidatorExtension.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Form/Extension/Validator/Type/FormTypeValidatorExtension.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Form/Extension/Validator/Type/FormTypeValidatorExtension.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Form/Extension/Validator/Type/FormTypeValidatorExtension.php
Outdated
Show resolved
Hide resolved
2c616dd
to
a9e9b85
Compare
src/Symfony/Component/Form/Extension/Validator/Type/FormTypeValidatorExtension.php
Show resolved
Hide resolved
Co-authored-by: Christian Flothmann <christian.flothmann@gmail.com>
/** | ||
* @group legacy | ||
*/ | ||
public function testLegacyWithBadFormRendererType() |
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.
This is not the legacy signature, but the new one though, as you don't pass the boolean.
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.
You are right. But when type hint will be set in 7.0. Args checking will be drop and tests must also be dropped.
I can keep @group legacy
and only remove legacy
in function name ?
$legacyErrorMessages
is required inFormTypeValidatorExtension
construct but it is not used anymore in class. This PR deprecate passing this argument.