Thanks to visit codestin.com
Credit goes to github.com

Skip to content

FormProtectionComponent deprecation warning #18751

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

Open
wants to merge 1 commit into
base: 5.x
Choose a base branch
from

Conversation

markusramsak
Copy link
Contributor

closes #18750

*/
public function startup(EventInterface $event): ?Response
public function startup(EventInterface $event): null
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can keep the return type to be the same, in bugfix versions we shouldnt change the signature.
We just make sure not to return anything else than null and are good.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed it back

@markusramsak markusramsak changed the title Update FormProtectionComponent.php FormProtectionComponent deprecation warning Jun 18, 2025
@dereuromark dereuromark added this to the 5.2.5 milestone Jun 18, 2025
@ADmad
Copy link
Member

ADmad commented Jun 18, 2025

The tests need to be updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FormProtectionComponent validationFailureCallback should use $event->setResult()
3 participants