Skip to content

Commit

Permalink
[debug:chain] Validate command name is valid. (#322)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmolivas committed Feb 18, 2018
1 parent b3d2c4d commit e3bed22
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Command/Debug/ChainCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,13 @@ protected function execute(InputInterface $input, OutputInterface $output)

$tableRows = [];
foreach ($fileNames as $file) {
$commandName = '';
if (array_key_exists('command', $files[$directory.$file])) {
$commandName = $files[$directory.$file]['command'];
}
$tableRows[] = [
'file' => $file,
'command' => $files[$directory.$file]['command']
'command' => $commandName
];
}

Expand Down

0 comments on commit e3bed22

Please sign in to comment.