Skip to content

Commit

Permalink
Avoid infinite loop in \Consolidation\AnnotatedCommand\Parser\Command…
Browse files Browse the repository at this point in the history
…Info::getName
  • Loading branch information
weitzman authored Dec 24, 2023
1 parent e01152f commit 0acca97
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Parser/CommandInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,9 @@ public function getMethodName()
*/
public function getName()
{
$this->parseDocBlock();
if (empty($this->name)) {
$this->parseDocBlock();
}
return $this->name;
}

Expand Down

0 comments on commit 0acca97

Please sign in to comment.