Skip to content

Commit 29ba17b

Browse files
Merge branch '4.2'
* 4.2: New extensions were released supporting PHP 7.3 Remove "internal" annotation from datacollector serialization methods replace mocks with real objects in tests [DependencyInjection] fix #29930 add $lazyLoad flag to the generated factory code for lazy non-shared services escape function does not always take a string Fix phpunit 8 compatibility render integer types with grouping as text input ignore _method forms in NativeRequestHandler don't lose int precision with not needed type casts
2 parents 2e3797c + b9f395d commit 29ba17b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dumper/GraphvizDumper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,9 @@ protected function dotize($id)
204204
/**
205205
* @internal
206206
*/
207-
protected function escape(string $string): string
207+
protected function escape($value): string
208208
{
209-
return addslashes($string);
209+
return \is_bool($value) ? ($value ? '1' : '0') : \addslashes($value);
210210
}
211211

212212
private function addAttributes(array $attributes): string

0 commit comments

Comments
 (0)