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.
1 parent 92a5d90 commit 757b784Copy full SHA for 757b784
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