detect default parameter from type float and adding tests for scopes with typed parameters (#1697)

This commit is contained in:
Marvin Naumann
2025-04-22 15:31:43 +02:00
committed by GitHub
parent 8eec4f1ff5
commit 0fa96e572d
4 changed files with 565 additions and 1 deletions
+1 -1
View File
@@ -1186,7 +1186,7 @@ class ModelsCommand extends Command
$default = '[]';
} elseif (is_null($default)) {
$default = 'null';
} elseif (is_int($default)) {
} elseif (is_int($default) || is_float($default)) {
//$default = $default;
} elseif ($default instanceof \UnitEnum) {
$default = '\\' . get_class($default) . '::' . $default->name;