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 932520c

Browse filesBrowse files
bug #46278 [Workflow] Fix deprecated syntax for interpolated strings (nicolas-grekas)
This PR was merged into the 4.4 branch. Discussion ---------- [Workflow] Fix deprecated syntax for interpolated strings | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Commits ------- 00b59f6 [Workflow] Fix deprecated syntax for interpolated strings
2 parents 4338337 + 00b59f6 commit 932520c
Copy full SHA for 932520c

File tree

1 file changed

+3
-3
lines changed
Filter options

1 file changed

+3
-3
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Workflow/Dumper/PlantUmlDumper.php
+3-3Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.