Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32e1400 commit 0613f7dCopy full SHA for 0613f7d
src/Symfony/Component/Workflow/Dumper/GraphvizDumper.php
@@ -204,9 +204,16 @@ protected function dotize($id)
204
/**
205
* @internal
206
*/
207
- protected function escape(string $string): string
+ protected function escape($value): string
208
{
209
- return addslashes($string);
+ if (\is_string($value)) {
210
+ $value = \addslashes($value);
211
+ }
212
+ if (\is_bool($value)) {
213
+ $value = $value ? '1' : '0';
214
215
+
216
+ return $value;
217
}
218
219
private function addAttributes(array $attributes): string
0 commit comments