Skip to content

Commit d5a939e

Browse files
committed
tweak: return rather than exit
1 parent 7f4ca1a commit d5a939e

3 files changed

Lines changed: 57 additions & 51 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"php": ">=8.3",
88
"ext-PDO": "*",
99
"phpgt/config": "^v1.1.0",
10-
"phpgt/cli": "^1.3",
10+
"phpgt/cli": "^1.4",
1111
"greenlion/php-sql-parser": "^4.6",
1212
"phpgt/sqlbuilder": "^1.0.1"
1313
},

composer.lock

Lines changed: 54 additions & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Cli/ExecuteCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use Gt\Database\StatementPreparationException;
1313

1414
class ExecuteCommand extends Command {
15-
public function run(?ArgumentValueList $arguments = null):void {
15+
public function run(?ArgumentValueList $arguments = null):int {
1616
$repoBasePath = getcwd();
1717
$defaultPath = $this->getDefaultPath($repoBasePath);
1818
$config = $this->getConfig($repoBasePath, $defaultPath);
@@ -38,6 +38,7 @@ public function run(?ArgumentValueList $arguments = null):void {
3838
$runFrom = $this->calculateResetNumber($arguments, $migrationFileList, $migrator, $migrationCount);
3939

4040
$this->executeMigrations($migrator, $migrationFileList, $runFrom);
41+
return 0;
4142
}
4243

4344
/** Determine whether the --force flag was provided. */

0 commit comments

Comments
 (0)