Commit 2f559255 authored by David Maicher's avatar David Maicher

add missing exit codes to ensure Symfony 5 compatibility

parent ce401dd3
......@@ -58,7 +58,7 @@ EOT
$fileNames = $input->getArgument('file');
if ($fileNames === null) {
return null;
return 0;
}
foreach ((array) $fileNames as $fileName) {
......@@ -133,6 +133,6 @@ EOT
}
}
return null;
return 0;
}
}
......@@ -68,5 +68,7 @@ EOT
}
$output->write(Dumper::dump($resultSet, (int) $depth));
return 0;
}
}
......@@ -70,10 +70,11 @@ class RunSqlCommandTest extends TestCase
{
$this->expectConnectionFetchAll();
$this->commandTester->execute([
$exitCode = $this->commandTester->execute([
'command' => $this->command->getName(),
'sql' => 'SELECT 1',
]);
$this->assertSame(0, $exitCode);
self::assertRegExp('@int.*1.*@', $this->commandTester->getDisplay());
self::assertRegExp('@array.*1.*@', $this->commandTester->getDisplay());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment