Skip to content

Commit

Permalink
Fixed CLI application
Browse files Browse the repository at this point in the history
  • Loading branch information
dolejska-daniel committed Feb 24, 2020
1 parent d367fba commit d0b003a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/LeagueAPICLI/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ public function __construct()
$commands[] = $this->createCommandFromReflectionMethod($method);

foreach ($commands as $command)
$this->add($command);
if ($command)
$this->add($command);
}

/**
Expand Down

0 comments on commit d0b003a

Please sign in to comment.