From d0b003abb6ff21df393065d946e390363a86618a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Dolej=C5=A1ka?= Date: Mon, 24 Feb 2020 21:11:52 +0100 Subject: [PATCH] Fixed CLI application --- src/LeagueAPICLI/Application.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/LeagueAPICLI/Application.php b/src/LeagueAPICLI/Application.php index f3c9258d..da6d4684 100644 --- a/src/LeagueAPICLI/Application.php +++ b/src/LeagueAPICLI/Application.php @@ -54,7 +54,8 @@ public function __construct() $commands[] = $this->createCommandFromReflectionMethod($method); foreach ($commands as $command) - $this->add($command); + if ($command) + $this->add($command); } /**