Skip to content

Commit b7819ec

Browse files
committed
🐛 Fix ide helper command with integer params
1 parent 7533e7a commit b7819ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Console/Commands/IdeHelpCommand.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,10 @@ private function getParameters(\ReflectionMethod $method): array
135135
$default = '[]';
136136
} elseif (is_null($default)) {
137137
$default = 'null';
138-
} else {
138+
} elseif (is_string($default)) {
139139
$default = "'".trim($default)."'";
140140
}
141+
141142
$paramStr .= " = $default";
142143
}
143144

0 commit comments

Comments
 (0)