8000 make:crud: not setting the "widget" option of form type "date" is deprecated · Issue #1392 · symfony/maker-bundle · GitHub
[go: up one dir, main page]

Skip to content

make:crud: not setting the "widget" option of form type "date" is deprecated #1392

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

Closed
tacman opened this issue Nov 6, 2023 · 1 comment · Fixed by #1393
Closed

make:crud: not setting the "widget" option of form type "date" is deprecated #1392

tacman opened this issue Nov 6, 2023 · 1 comment · Fixed by #1393

Comments

@tacman
Copy link
Contributor
tacman commented Nov 6, 2023

when generating a date form element, the widget property is required, so this bundle should to generate it to avoid the deprecation.

$builder
            ->add('officialName')
            ->add('birthday'); // needs widget option
@weaverryan
Copy link
Member

PR welcome - it should be set to single_text as that will be the new default in Symfony 7

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

Successfully merging a pull request may close this issue.

2 participants
0