8000 [WIP] Remove remaining deprecated interfaces by nicolas-grekas · Pull Request #16097 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[WIP] Remove remaining deprecated interfaces #16097

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

Conversation

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

This PR tracks all the places where I found something that may be removed.
Please anyone, take inspiration from this patch and make it in your own PR.
I'll keep rebasing this one until it's empty.

@@ -901,10 +901,7 @@ private function relativize($xpath)
$expression = substr($expression, strlen($parenthesis));
}

// BC for Symfony 2.4 and lower were elements were adding in a fake _root parent
if (0 === strpos($expression, '/_root/')) {
Copy link
Member

Choose a reason for hiding this comment

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

We should add a deprecation warning for this in 2.8 first

'choices' => array(),
'choices_as_values' => false,
'choices_as_values' => true,
Copy link
Member Author

Choose a reason for hiding this comment

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

Comment from @stof: this option should be deprecated saying it has no effect anymore (and the value should be true to reflect the behavior of the code). The option should be kept though, to allow writing code compatible with 2.8 and 3.0 (passing the value explicitly).

@nicolas-grekas nicolas-grekas force-pushed the clean-master branch 3 times, most recently from 4bbbf25 to 07c92a9 Compare October 4, 2015 13:01
@nicolas-grekas
Copy link
Member Author

@stof would you like to take over this PR? I'm not conformable enough with the code there...

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
0