Skip to content

Commit 1ed543b

Browse files
committed
🚨 assure backward compatibility
1 parent f26d445 commit 1ed543b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/DocBlock/Tags/MethodParameter.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ public function isVariadic(): bool
7171

7272
public function getDefaultValue(): ?string
7373
{
74+
if ($this->defaultValue === static::NO_DEFAULT_VALUE) {
75+
return null;
76+
}
7477
if (is_array($this->defaultValue)) {
7578
return implode(',', $this->defaultValue);
7679
}

0 commit comments

Comments
 (0)