diff --git a/src/Console/ForgetFailedCommand.php b/src/Console/ForgetFailedCommand.php index 7e850238..9ab3da15 100644 --- a/src/Console/ForgetFailedCommand.php +++ b/src/Console/ForgetFailedCommand.php @@ -24,7 +24,7 @@ class ForgetFailedCommand extends Command /** * Execute the console command. * - * @return void + * @return int|null */ public function handle(JobRepository $repository) { @@ -34,6 +34,8 @@ public function handle(JobRepository $repository) $this->info('Failed job deleted successfully!'); } else { $this->error('No failed job matches the given ID.'); + + return 1; } } }