Skip to content

Commit da14654

Browse files
committed
minor #20084 example function param 1 requires string (franzholz)
This PR was merged into the 6.4 branch. Discussion ---------- example function param 1 requires string An int causes a PHP error argument #1 ($line) must be of type int, string given, Commits ------- 4f733e0 example function param 1 requires string
2 parents 052e5be + 4f733e0 commit da14654

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
@@ -627,7 +627,7 @@ For example, to get a dump as a string in a variable, you can do::
627627

628628
$dumper->dump(
629629
$cloner->cloneVar($variable),
630-
function (int $line, int $depth) use (&$output): void {
630+
function (string $line, int $depth) use (&$output): void {
631631
// A negative depth means "end of dump"
632632
if ($depth >= 0) {
633633
// 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