Skip to content

Commit

Permalink
🚨 assure backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
GautierDele committed Nov 4, 2024
1 parent f26d445 commit 1ed543b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/DocBlock/Tags/MethodParameter.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ public function isVariadic(): bool

public function getDefaultValue(): ?string
{
if ($this->defaultValue === static::NO_DEFAULT_VALUE) {
return null;
}
if (is_array($this->defaultValue)) {
return implode(',', $this->defaultValue);
}
Expand Down

0 comments on commit 1ed543b

Please sign in to comment.