-
Notifications
You must be signed in to change notification settings - Fork 3.4k
deprecate Form::_execute #18725
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
deprecate Form::_execute #18725
Conversation
The problem with this way of deprecating is, that every Form execution will trigger this deprecation now, no matter if its done by a overwritten class or not. But I can't find any other BC way of doing this without adding reflection to the class (to know if the child class has an overwritten |
137d4e3
to
96af950
Compare
71c01ef
to
977654b
Compare
]; | ||
|
||
$this->assertFalse($form->execute($data)); | ||
$this->deprecated(function (): void { |
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.
There also needs to be a test using a class which doesn't override _execute()
and overrides process()
.
e660250
to
e40675b
Compare
e40675b
to
9d1fe85
Compare
I can give this a shot as it was my suggestion. |
What needs to be done here? I thought the current state is fine now |
Nothing really. I thought you weren't happy with the results. I think using reflection for these scenarios is quite reasonable. |
Refs: #18707