Skip to content

Commit 6538738

Browse files
committed
refactor: return EXIT_ERROR on check verify command
1 parent ba62e8a commit 6538738

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

system/CLI/Commands.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ public function __construct($logger = null)
5252
/**
5353
* Runs a command given
5454
*
55-
* @return int|null Exit code
55+
* @return int Exit code
5656
*/
5757
public function run(string $command, array $params)
5858
{
5959
if (! $this->verifyCommand($command, $this->commands)) {
60-
return null;
60+
return EXIT_ERROR;
6161
}
6262

6363
// The file would have already been loaded during the

0 commit comments

Comments
 (0)