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 (#306)
  • Loading branch information
weitzman authored Dec 24, 2023
1 parent e01152f commit 973ce24
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 973ce24

Please sign in to comment.