Skip to content

Use of class notation for data_class option in forms #6775

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
wants to merge 1 commit into from
Closed

Use of class notation for data_class option in forms #6775

wants to merge 1 commit into from

Conversation

tobske
Copy link

@tobske tobske commented Jul 28, 2016

No description provided.

@javiereguiluz
Copy link
Member

javiereguiluz commented Aug 29, 2016

👍 (but the branch should be 3.0 instead of master)

A question to doc maintainers: since ::class requires PHP 5.5, should we update the docs anyway or wait a bit before doing that? Thanks! Nevermind: Symfony 3.x itself requires PHP 5.5+, so it's safe for docs to use 5.5 features.

@snoek09
Copy link

snoek09 commented Sep 4, 2016

Thanks @tobske 👍

Status: reviewed.

@xabbuh
Copy link
Member

xabbuh commented Sep 21, 2016

Actually, I am 👎 on this change (as long as we do not use this in older versions too). Having the class notation only in newer versions will lead to conflicts when merging branches up for no real added value.

@weaverryan @wouterj What do you think?

@weaverryan
Copy link
Member

@xabbuh I disagree, only because the :: syntax is the only usable way to use the forms (thanks to auto-completion from IDE's). Unfortunately, I think we should bear the burden for the merge conflicts :).

👍

@wouterj
Copy link
Member

wouterj commented Oct 6, 2016

I agree with @weaverryan here. There is a significant readability improvement here. 👍

@xabbuh
Copy link
Member

xabbuh commented Oct 14, 2016

Fair enough, what do you think if we made those changes for the 2.8 docs then? People who still do not use PHP 5.5 will probably be able to figure out what to use instead, won't they?

@stof
Copy link
Member

stof commented Oct 14, 2016

I tend to agree with @xabbuh here.

Btw, the class notation is supported in PHP 5.5. so people having to figure it out are users of PHP 5.3 or 5.4, which are both EOLed.

@wouterj
Copy link
Member

wouterj commented Oct 16, 2016

👍 for 2.8 docs

@javiereguiluz
Copy link
Member

Closing it in favor of #7157 which applies this change in 2.8 branch.

@tobske I'm sorry but I couldn't reuse your original commits because the Symfony Docs changed their internal structure completely since you created this PR.

@tobske
Copy link
Author

tobske commented Nov 26, 2016

@javiereguiluz No problem, I just wanted to give some input.

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.

8 participants