8000 [Workflow] Fix deprecated syntax for interpolated strings by nicolas-grekas · Pull Request #46278 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Workflow] Fix deprecated syntax for interpolated strings #46278

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

Merged
merged 1 commit into from
May 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[Workflow] Fix deprecated syntax for interpolated strings
  • Loading branch information
nicolas-grekas committed May 6, 2022
commit 00b59f606b634bf115a264631dce5f7a3e58f09d
6 changes: 3 additions & 3 deletions src/Symfony/Component/Workflow/Dumper/PlantUmlDumper.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,16 @@ public function dump(Definition $definition, Marking $marking = null, array $opt
}

$lines = [
"$fromEscaped -${transitionColor}-> ${transitionEscaped}${transitionLabel}",
"$transitionEscaped -${transitionColor}-> ${toEscaped}${transitionLabel}",
"{$fromEscaped} -{$transitionColor}-> {$transitionEscaped}{$transitionLabel}",
"{$transitionEscaped} -{$transitionColor}-> {$toEscaped}{$transitionLabel}",
];
foreach ($lines as $line) {
if (!\in_array($line, $code)) {
$code[] = $line;
}
}
} else {
$code[] = "$fromEscaped -${transitionColor}-> $toEscaped: $transitionEscapedWithStyle";
$code[] = "{$fromEscaped} -{$transitionColor}-> {$toEscaped}: {$transitionEscapedWithStyle}";
}
}
}
Expand Down
0