Skip to content

Commit 554b823

Browse files
symfony 5 version return 0
https://symfony.com/doc/current/console.html#creating-a-command must be of the type int, NULL returned. in vendor/symfony/console/Command/Command.php:258 https://github.com/symfony/symfony/blob/5.0/src/Symfony/Component/Console/Command/Command.php#L159
1 parent a9cbfc7 commit 554b823

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Command/SchemaLoadCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public function execute(InputInterface $input, OutputInterface $output)
103103

104104
if (!count($queries)) {
105105
$output->writeln("<info>No schema changes required</info>");
106-
return;
106+
return 0;
107107
}
108108

109109
if ($apply) {
@@ -123,5 +123,6 @@ public function execute(InputInterface $input, OutputInterface $output)
123123
$output->writeln($query);
124124
}
125125
}
126+
return 0;
126127
}
127128
}

0 commit comments

Comments
 (0)