Skip to content

Use string instead of FQCN #12002

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

Merged
merged 1 commit into from
Jul 23, 2019
Merged

Use string instead of FQCN #12002

merged 1 commit into from
Jul 23, 2019

Conversation

OskarStark
Copy link
Contributor

If the type is string, it should either be:

type: string default: 'Symfony\Component\Form\Extension\Core\Type\TextType'

or

type: string default: Symfony\Component\Form\Extension\Core\Type\TextType::class

@xabbuh can you please give me some feedback here? Thanks

@OskarStark OskarStark added this to the 3.4 milestone Jul 22, 2019
@OskarStark OskarStark requested a review from xabbuh July 22, 2019 08:57
@xabbuh
Copy link
Member

xabbuh commented Jul 22, 2019

Do we have other examples with default string values? Do we quote them?

@OskarStark
Copy link
Contributor Author

@xabbuh
Copy link
Member

xabbuh commented Jul 22, 2019

Then I'd do the same here too.

@OskarStark
Copy link
Contributor Author

Ok, RTM 👍

@OskarStark OskarStark requested a review from javiereguiluz July 23, 2019 07:17
@OskarStark OskarStark merged commit 0c26a3d into symfony:3.4 Jul 23, 2019
OskarStark added a commit that referenced this pull request Jul 23, 2019
This PR was merged into the 3.4 branch.

Discussion
----------

Use string instead of FQCN

If the type is string, it should either be:

**type**: ``string`` **default**: ``'Symfony\Component\Form\Extension\Core\Type\TextType'``

or

**type**: ``string`` **default**: ``Symfony\Component\Form\Extension\Core\Type\TextType::class``

@xabbuh can you please give me some feedback here? Thanks

Commits
-------

0c26a3d Use string instead of FQCN
@OskarStark OskarStark deleted the string branch July 23, 2019 07:27
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.

3 participants