Skip to content

Commit

Permalink
[GenerateMarkdownDoc] Use var_export for rendering default param valu…
Browse files Browse the repository at this point in the history
…es (#1120)
  • Loading branch information
Naktibalda authored and greg-1-anderson committed Aug 21, 2022
1 parent 3ecd1db commit 9a36981
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Task/Development/GenerateMarkdownDoc.php
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ protected function documentParam(\ReflectionParameter $param)
if ($param->allowsNull()) {
$text .= ' = null';
} else {
$text .= ' = ' . str_replace("\n", ' ', print_r($param->getDefaultValue(), true));
$text .= ' = ' . str_replace("\n", ' ', var_export($param->getDefaultValue(), true));
}
}

Expand Down

0 comments on commit 9a36981

Please sign in to comment.