Skip to content

Commit

Permalink
[console] Pass default value when calling invalid_commands. (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmolivas committed Feb 12, 2018
1 parent 4c7962a commit 6862cba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,9 @@ private function registerCommands()

$invalidCommands = [];
if ($this->container->has('console.key_value_storage')) {
$invalidCommands = $this->container->get('console.key_value_storage')->get('invalid_commands');
$invalidCommands = $this->container
->get('console.key_value_storage')
->get('invalid_commands', []);
}

foreach ($consoleCommands as $name => $tags) {
Expand Down

0 comments on commit 6862cba

Please sign in to comment.