From e6efbfb7164a59b95a210f4ee7e09c114d0f8ebb Mon Sep 17 00:00:00 2001 From: Gintautas Miselis Date: Sun, 31 Jul 2022 12:08:38 +0300 Subject: [PATCH] [GenerateMarkdownDoc] Use var_export for rendering default param values --- src/Task/Development/GenerateMarkdownDoc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Task/Development/GenerateMarkdownDoc.php b/src/Task/Development/GenerateMarkdownDoc.php index 01487eead..834503d7a 100644 --- a/src/Task/Development/GenerateMarkdownDoc.php +++ b/src/Task/Development/GenerateMarkdownDoc.php @@ -685,7 +685,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)); } }