Skip to content

Commit 6414812

Browse files
committed
Rework start method
1 parent 7dcf40c commit 6414812

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Server.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class Server
4141
*
4242
* @param bool $running
4343
*/
44-
protected bool $running;
44+
protected $running = false;
4545

4646
/**
4747
* The running process
@@ -203,7 +203,7 @@ private function initProcess(): Process
203203
return $process;
204204
}
205205

206-
public function start(callable $callback = null): int
206+
public function start(): int
207207
{
208208
$this->process = $this->initProcess();
209209

tests/ServerTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,3 +139,4 @@
139139

140140
expect($server->getProcess())->toBeInstanceOf(Process::class);
141141
});
142+

0 commit comments

Comments
 (0)