From 72e4f77307bc3ba29792c6af9852f964ff440f27 Mon Sep 17 00:00:00 2001 From: Jarvis Date: Sun, 27 Nov 2022 02:21:47 +0800 Subject: [PATCH] chore: command const --- src/Workaround/SeedCommand.php | 2 +- src/Workaround/TestCommand.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Workaround/SeedCommand.php b/src/Workaround/SeedCommand.php index cfcb589..dbd93b2 100644 --- a/src/Workaround/SeedCommand.php +++ b/src/Workaround/SeedCommand.php @@ -61,7 +61,7 @@ public function __construct(Resolver $resolver) public function handle() { if (! $this->confirmToProceed()) { - return 1; + return Command::FAILURE; } $previousConnection = $this->resolver->getDefaultConnection(); diff --git a/src/Workaround/TestCommand.php b/src/Workaround/TestCommand.php index a131bd0..d8e6521 100644 --- a/src/Workaround/TestCommand.php +++ b/src/Workaround/TestCommand.php @@ -76,7 +76,7 @@ public function handle() if ($this->option('parallel') && ! $this->isParallelDependenciesInstalled()) { if (! $this->confirm('Running tests in parallel requires "brianium/paratest". Do you wish to install it as a dev dependency?')) { - return 1; + return Command::FAILURE; } $this->installParallelDependencies();