diff --git a/src/DocBlock/Tags/MethodParameter.php b/src/DocBlock/Tags/MethodParameter.php index 4cb2827..06fc054 100644 --- a/src/DocBlock/Tags/MethodParameter.php +++ b/src/DocBlock/Tags/MethodParameter.php @@ -71,6 +71,9 @@ final class MethodParameter public function getDefaultValue(): ?string { + if ($this->defaultValue === static::NO_DEFAULT_VALUE) { + return null; + } if (is_array($this->defaultValue)) { return implode(',', $this->defaultValue); }