Skip to content

Commit 4f7ecef

Browse files
authored
example function param 1 requires string
An int causes a PHP error argument symfony#1 ($line) must be of type int, string given,
1 parent 8dc3c89 commit 4f7ecef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/var_dumper.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ For example, to get a dump as a string in a variable, you can do::
623623

624624
$dumper->dump(
625625
$cloner->cloneVar($variable),
626-
function (int $line, int $depth) use (&$output): void {
626+
function (string $line, int $depth) use (&$output): void {
627627
// A negative depth means "end of dump"
628628
if ($depth >= 0) {
629629
// Adds a two spaces indentation to the line

0 commit comments

Comments
 (0)