From 1ed543b2483bfb4940869434d2466a7b5f3ed7da Mon Sep 17 00:00:00 2001 From: Gautier DELEGLISE Date: Mon, 4 Nov 2024 08:24:17 +0100 Subject: [PATCH] :rotating_light: assure backward compatibility --- src/DocBlock/Tags/MethodParameter.php | 3 +++ 1 file changed, 3 insertions(+) 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); }