Skip to content

Commit 975b773

Browse files
committed
CliTester::run() returns int
1 parent 99f4550 commit 975b773

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Runner/CliTester.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class CliTester
2626
private ?string $stdoutFormat = null;
2727

2828

29-
public function run(): ?int
29+
public function run(): int
3030
{
3131
Environment::setupColors();
3232
$this->setupErrors();
@@ -43,7 +43,7 @@ public function run(): ?int
4343

4444
if ($cmd->isEmpty() || $this->options['--help']) {
4545
$cmd->help();
46-
return null;
46+
return 0;
4747
}
4848

4949
$this->createPhpInterpreter();
@@ -53,7 +53,7 @@ public function run(): ?int
5353
$job->setTempDirectory($this->options['--temp']);
5454
$job->run();
5555
echo $job->getTest()->stdout;
56-
return null;
56+
return 0;
5757
}
5858

5959
$runner = $this->createRunner();
@@ -74,7 +74,7 @@ public function run(): ?int
7474

7575
if ($this->options['--watch']) {
7676
$this->watch($runner);
77-
return null;
77+
return 0;
7878
}
7979

8080
$result = $runner->run();

0 commit comments

Comments
 (0)