8000 Merge branch '4.4' into 5.4 · symfony/symfony@0f95953 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0f95953

Browse files
Merge branch '4.4' into 5.4
* 4.4: [Workflow] Fix deprecated syntax for interpolated strings
2 parents 0dc07cd + 932520c commit 0f95953

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Symfony/Component/Console/Command/DumpCompletionCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ protected function configure()
5353
5454
Dump the script to a global completion file and restart your shell:
5555
56-
<info>%command.full_name% bash | sudo tee /etc/bash_completion.d/${commandName}</>
56+
<info>%command.full_name% bash | sudo tee /etc/bash_completion.d/{$commandName}</>
5757
5858
Or dump the script to a local file and source it:
5959
@@ -70,7 +70,7 @@ protected function configure()
7070
7171
Add this to the end of your shell configuration file (e.g. <info>"~/.bashrc"</>):
7272
73-
<info>eval "$(${fullCommand} completion bash)"</>
73+
<info>eval "$({$fullCommand} completion bash)"</>
7474
EOH
7575
)
7676
->addArgument('shell', InputArgument::OPTIONAL, 'The shell type (e.g. "bash"), the value of the "$SHELL" env var will be used if this is not given')

src/Symfony/Component/Workflow/Dumper/PlantUmlDumper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,16 +103,16 @@ public function dump(Definition $definition, Marking $marking = null, array $opt
103103
}
104104

105105
$lines = [
106-
"$fromEscaped -${transitionColor}-> ${transitionEscaped}${transitionLabel}",
107-
"$transitionEscaped -${transitionColor}-> ${toEscaped}${transitionLabel}",
106+
"{$fromEscaped} -{$transitionColor}-> {$transitionEscaped}{$transitionLabel}",
107+
"{$transitionEscaped} -{$transitionColor}-> {$toEscaped}{$transitionLabel}",
108108
];
109109
foreach ($lines as $line) {
110110
if (!\in_array($line, $code)) {
111111
$code[] = $line;
112112
}
113113
}
114114
} else {
115-
$code[] = "$fromEscaped -${transitionColor}-> $toEscaped: $transitionEscapedWithStyle";
115+
$code[] = "{$fromEscaped} -{$transitionColor}-> {$toEscaped}: {$transitionEscapedWithStyle}";
116116
}
117117
}
118118
}

0 commit comments

Comments
 (0)
0