Skip to content

Commit

Permalink
fix(documentator): null output in generated help of `lara-asp-docum…
Browse files Browse the repository at this point in the history
…entator:preprocess` command.
  • Loading branch information
LastDragon-ru committed Nov 28, 2024
1 parent dd89d91 commit 8a017bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/documentator/src/Commands/Preprocess.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ protected function getProcessedHelpTaskPreprocessParameters(
$default = match (true) {
$theDefault instanceof UnitEnum => $theDefault::class.'::'.$theDefault->name,
is_scalar($theDefault) => var_export($theDefault, true),
$theDefault === null => 'null',
default => '<'.gettype($theDefault).'>',
};
$definition = "{$definition} = `{$default}`";
Expand Down

0 comments on commit 8a017bf

Please sign in to comment.