From 456d2b0be2b8790719a1c9a4eeb6a1e47e3d5a5b Mon Sep 17 00:00:00 2001 From: Gautier DELEGLISE Date: Sun, 27 Oct 2024 12:20:56 +0100 Subject: [PATCH] :bug: left side of ?? is not nullable --- src/DocBlock/Tags/Method.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DocBlock/Tags/Method.php b/src/DocBlock/Tags/Method.php index 174e33c..5fad2f3 100644 --- a/src/DocBlock/Tags/Method.php +++ b/src/DocBlock/Tags/Method.php @@ -272,7 +272,7 @@ final class Method extends BaseTag implements Factory\StaticMethod ($parameter->isReference() ? '&' : '') . ($parameter->isVariadic() ? '...' : '') . '$' . $parameter->getName() . - $parameterDefaultValueStr ?? ''; + ($parameterDefaultValueStr ?? ''); } $argumentStr = '(' . implode(', ', $arguments) . ')';