Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 987fbae

Browse filesBrowse files
author
Amrouche Hamza
committed
[FrameworkBundle] Fix a bug where a color tag will be shown when passing an antislash
1 parent f056b4e commit 987fbae
Copy full SHA for 987fbae

File tree

1 file changed

+3
-0
lines changed
Filter options

1 file changed

+3
-0
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/TextDescriptor.php
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,9 @@ protected function describeContainerServices(ContainerBuilder $builder, array $o
226226
$rawOutput = isset($options['raw_text']) && $options['raw_text'];
227227
foreach ($this->sortServiceIds($serviceIds) as $serviceId) {
228228
$definition = $this->resolveServiceDefinition($builder, $serviceId);
229+
if ('\\' === substr($serviceId, -1)) {
230+
$serviceId = substr($serviceId, 0, -1);
231+
}
229232
$styledServiceId = $rawOutput ? $serviceId : sprintf('<fg=cyan>%s</fg=cyan>', $serviceId);
230233
if ($definition instanceof Definition) {
231234
if ($showTag) {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.