Skip to content

Commit

Permalink
refactor: return EXIT_ERROR on check verify command
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Dec 10, 2024
1 parent ba62e8a commit 6538738
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions system/CLI/Commands.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ public function __construct($logger = null)
/**
* Runs a command given
*
* @return int|null Exit code
* @return int Exit code
*/
public function run(string $command, array $params)
{
if (! $this->verifyCommand($command, $this->commands)) {
return null;
return EXIT_ERROR;
}

// The file would have already been loaded during the
Expand Down

0 comments on commit 6538738

Please sign in to comment.