Skip to content

Commit 2861ca4

Browse files
[issue/24043] make sure exitCode is defined
1 parent 9ffe7eb commit 2861ca4

File tree

1 file changed

+1
-0
lines changed
  • lib/internal/Magento/Framework/Console

1 file changed

+1
-0
lines changed

lib/internal/Magento/Framework/Console/Cli.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ public function __construct($name = 'UNKNOWN', $version = 'UNKNOWN')
102102
*/
103103
public function doRun(Console\Input\InputInterface $input, Console\Output\OutputInterface $output)
104104
{
105+
$exitCode = null;
105106
try {
106107
$exitCode = parent::doRun($input, $output);
107108
} catch (\Exception $e) {

0 commit comments

Comments
 (0)