Skip to content

Updated type guessers to use the PHP 5.5 ::class constant #16648

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

Updated type guessers to use the PHP 5.5 ::class constant #16648

wants to merge 1 commit into from

Conversation

hiddewie
Copy link
Contributor

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

Almost same PR as #16334, but with ::class constants.

@unkind
Copy link
Contributor

unkind commented Nov 24, 2015

AFAIK, Symfony 3.0 supports 5.5.

@wouterj
Copy link
Member

wouterj commented Nov 24, 2015

Fortunately, ::class was introduced in PHP 5.5 :)

@hiddewie hiddewie changed the title Updated type guessers to use the PHP 5.6 ::class constant Updated type guessers to use the PHP 5.5 ::class constant Nov 24, 2015
@hiddewie
Copy link
Contributor Author

I've updated the title :)

@stof
Copy link
Member

stof commented Nov 24, 2015

This would make it harder to merge branches together during the Symfony 2.8 lifetime though, as it would create conflicts. So I'm not sure we should do it yet. There is no real added value for this PR compared to the drawbacks for maintainers (this is why we don't use the short array syntax in the 3.0 codebase btw).
@fabpot what do you think ?

@fabpot
Copy link
Member

fabpot commented Nov 24, 2015

I agree with @stof, I does not add any "value" to the framework and it would make the core team life harder.

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.

6 participants