From a8a6c61f91c8c019a7baae683283d752053482b8 Mon Sep 17 00:00:00 2001 From: Greg Anderson Date: Fri, 5 Apr 2024 13:14:09 -0700 Subject: [PATCH] Note that we have parsed everything as soon as we enter the "parse" method, to avoid infinite loops. --- src/Parser/CommandInfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Parser/CommandInfo.php b/src/Parser/CommandInfo.php index 60a700a..980c0da 100644 --- a/src/Parser/CommandInfo.php +++ b/src/Parser/CommandInfo.php @@ -872,10 +872,10 @@ protected function camelToSnake($camel, $splitter = '_') protected function parseDocBlock() { if (!$this->docBlockIsParsed) { + $this->docBlockIsParsed = true; // The parse function will insert data from the provided method // into this object, using our accessors. CommandDocBlockParserFactory::parse($this, $this->reflection); - $this->docBlockIsParsed = true; // Use method's return type if @return is not present. if ($this->reflection->hasReturnType() && !$this->getReturnType()) { $type = $this->reflection->getReturnType();