Skip to content

Commit

Permalink
Note that we have parsed everything as soon as we enter the "parse" m…
Browse files Browse the repository at this point in the history
…ethod, to avoid infinite loops.
  • Loading branch information
Greg Anderson committed Apr 5, 2024
1 parent f5e90aa commit a8a6c61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Parser/CommandInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit a8a6c61

Please sign in to comment.