From b7819ecc5a06213dc1aa6157ee0682a93b6c2abf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Falc=C3=B3n?= Date: Thu, 1 Jul 2021 09:56:35 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20ide=20helper=20command=20w?= =?UTF-8?q?ith=20integer=20params?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Console/Commands/IdeHelpCommand.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Console/Commands/IdeHelpCommand.php b/src/Console/Commands/IdeHelpCommand.php index 6ba263b..b610d1f 100644 --- a/src/Console/Commands/IdeHelpCommand.php +++ b/src/Console/Commands/IdeHelpCommand.php @@ -135,9 +135,10 @@ private function getParameters(\ReflectionMethod $method): array $default = '[]'; } elseif (is_null($default)) { $default = 'null'; - } else { + } elseif (is_string($default)) { $default = "'".trim($default)."'"; } + $paramStr .= " = $default"; }