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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy