-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[TwigBridge] Fix Bootstrap 4 form error layout #52373
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
base: 5.4
Are you sure you want to change the base?
Conversation
It looks like you unchecked the "Allow edits from maintainer" box. That is fine, but please note that if you have multiple commits, you'll need to squash your commits into one before this can be merged. Or, you can check the "Allow edits from maintainers" box and the maintainer can squash for you. Cheers! Carsonbot |
src/Symfony/Bridge/Twig/Tests/Extension/AbstractBootstrap4HorizontalLayoutTestCase.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_4_layout.html.twig
Show resolved
Hide resolved
src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_4_layout.html.twig
Outdated
Show resolved
Hide resolved
I think this failure is related. 1) Symfony\Bridge\Twig\Tests\Node\FormThemeTest::testCompile
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'$this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme(($context["form"] ?? null), [0 => "tpl1", 1 => "tpl2"], true);'
+'$this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme(($context["form"] ?? null), ["tpl1", "tpl2"], true);'
/home/runner/work/symfony/symfony/src/Symfony/Bridge/Twig/Tests/Node/FormThemeTest.php:63 Any idea how to fix the test? symfony/src/Symfony/Bridge/Twig/Tests/Node/FormThemeTest.php Lines 62 to 80 in 8dcb1df
|
c91e565
to
d9d92e6
Compare
This failed test doesn't use the recent change. The line in I can reproduce the failure in Symfony 4 and PHP 8.2 + high-deps. The result of 1) Symfony\Bridge\Twig\Tests\Node\FormThemeTest::testCompile
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'$this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme(($context["form"] ?? null), [0 => "tpl1", 1 => "tpl2"], true);'
+'$this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme(($context["form"] ?? null), ["tpl1", "tpl2"], true);'
/home/runner/work/symfony/symfony/src/Symfony/Bridge/Twig/Tests/Node/FormThemeTest.php:63 |
This PR will fix Bootstrap 4 form layout when using a required marker.