escape function does not always take a string
This commit is contained in:
parent
32e14005a6
commit
1b17192b0a
@ -204,9 +204,9 @@ class GraphvizDumper implements DumperInterface
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
protected function escape(string $string): string
|
||||
protected function escape($value): string
|
||||
{
|
||||
return addslashes($string);
|
||||
return \is_bool($value) ? ($value ? '1' : '0') : \addslashes($value);
|
||||
}
|
||||
|
||||
private function addAttributes(array $attributes): string
|
||||
|
Reference in New Issue
Block a user