8000 Merge branch '3.3' into 3.4 · symfony/symfony@24be059 · GitHub
[go: up one dir, main page]

Skip to content

Commit 24be059

Browse files
committed
Merge branch '3.3' into 3.4
* 3.3: fixed typo [FrameworkBundle] Fix a bug where a color tag will be shown when passing an antislash
2 parents 4ae47e0 + 0f0a576 commit 24be059

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Symfony/Bridge/Twig/Tests/Extension/FormExtensionDivLayoutTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public function isRootFormProvider()
162162
*/
163163
public function testIsRootForm($expected, FormView $formView)
164164
{
165-
$this->assertSame($expected, twig_is_root_form($formView));
165+
$this->assertSame($expected, \Symfony\Bridge\Twig\Extension\twig_is_root_form($formView));
166166
}
167167

168168
protected function renderForm(FormView $view, array $vars = array())

src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/TextDescriptor.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace Symfony\Bundle\FrameworkBundle\Console\Descriptor;
1313

14+
use Symfony\Component\Console\Formatter\OutputFormatter;
1415
use Symfony\Component\Console\Helper\Table;
1516
use Symfony\Component\Console\Style\SymfonyStyle;
1617
use Symfony\Component\DependencyInjection\Alias;
@@ -226,7 +227,8 @@ protected function describeContainerServices(ContainerBuilder $builder, array $o
226227
$rawOutput = isset($options['raw_text']) && $options['raw_text'];
227228
foreach ($this->sortServiceIds($serviceIds) as $serviceId) {
228229
$definition = $this->resolveServiceDefinition($builder, $serviceId);
229-
$styledServiceId = $rawOutput ? $serviceId : sprintf('<fg=cyan>%s</fg=cyan>', $serviceId);
230+
231+
$styledServiceId = $rawOutput ? $serviceId : sprintf('<fg=cyan>%s</fg=cyan>', OutputFormatter::escape($serviceId));
230232
if ($definition instanceof Definition) {
231233
if ($showTag) {
232234
foreach ($definition->getTag($showTag) as $key => $tag) {

0 commit comments

Comments
 (0)
0