Skip to content

Commit

Permalink
🐛 Fix ide helper command with integer params
Browse files Browse the repository at this point in the history
  • Loading branch information
victor-falcon committed Jul 1, 2021
1 parent 7533e7a commit b7819ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Console/Commands/IdeHelpCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}

Expand Down

0 comments on commit b7819ec

Please sign in to comment.