Skip to content

Commit

Permalink
minor #20084 example function param 1 requires string (franzholz)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
javiereguiluz committed Aug 2, 2024
2 parents 052e5be + 4f733e0 commit da14654
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/var_dumper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ For example, to get a dump as a string in a variable, you can do::

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

0 comments on commit da14654

Please sign in to comment.