From 442a3d1dc8b6beef5b5a2344d5d4be4e5be058d8 Mon Sep 17 00:00:00 2001 From: Gautier DELEGLISE Date: Sun, 27 Oct 2024 12:17:33 +0100 Subject: [PATCH] :recycle: variable might not be defined --- src/DocBlock/Tags/Method.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/DocBlock/Tags/Method.php b/src/DocBlock/Tags/Method.php index ceefa6a..174e33c 100644 --- a/src/DocBlock/Tags/Method.php +++ b/src/DocBlock/Tags/Method.php @@ -261,6 +261,7 @@ final class Method extends BaseTag implements Factory\StaticMethod { $arguments = []; foreach ($this->parameters as $parameter) { + $parameterDefaultValueStr = null; if ($parameter->getDefaultValue() !== null) { $parameterDefaultValueStr = $parameter->getDefaultValue(); settype($parameterDefaultValueStr, (string)$parameter->getType());