Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4f733e0

Browse files
authored
example function param 1 requires string
An int causes a PHP errorargument#1 ($line) must be of type int, string given,
1 parent1056ba9 commit4f733e0

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)

[8]ページ先頭

©2009-2025 Movatter.jp