-
-
Notifications
You must be signed in to change notification settings - Fork 384
[TwigComponent][UX3] Remove deprecations #3040
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
Conversation
Need rebase |
ae24685
to
1491ace
Compare
Good. Let's deal with 8.5 in another PR |
Failing checks for 8.5 were fixed in 2.x |
1491ace
to
4daa323
Compare
Thank you @smnandre. |
// since twig/twig 3.9.0: Using the internal "twig_to_array" function is deprecated. | ||
if (method_exists(CoreExtension::class, 'toArray')) { | ||
$twig_to_array = 'Twig\Extension\CoreExtension::toArray'; | ||
} else { | ||
$twig_to_array = 'twig_to_array'; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could backport this
if (null === $value) { | ||
trigger_deprecation('symfony/ux-twig-component', '2.8.0', 'Passing "null" as an attribute value is deprecated and will throw an exception in 3.0.'); | ||
$value = true; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should have been in 2.8.0 changelog :s
Uh oh!
There was an error while loading. Please reload this page.