-
-
Notifications
You must be signed in to change notification settings - Fork 383
[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
…e (Kocal) This PR was merged into the 3.x branch. Discussion ---------- [TwigComponent] Remove dev-dependency on WebpackEncoreBundle | Q | A | -------------- | --- | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- if yes, also update UPGRADE-*.md and src/**/CHANGELOG.md --> | Documentation? | no <!-- required for new features, or documentation updates --> | Issues | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT Follow #3040 Commits ------- e86572d [TwigComponent] Remove dev-dependency on WebpackEncoreBundle
Uh oh!
There was an error while loading. Please reload this page.