Skip to content

Commit

Permalink
Rework start method
Browse files Browse the repository at this point in the history
  • Loading branch information
WyattCast44 committed Jul 24, 2022
1 parent 7dcf40c commit 6414812
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Server
*
* @param bool $running
*/
protected bool $running;
protected $running = false;

/**
* The running process
Expand Down Expand Up @@ -203,7 +203,7 @@ private function initProcess(): Process
return $process;
}

public function start(callable $callback = null): int
public function start(): int
{
$this->process = $this->initProcess();

Expand Down
1 change: 1 addition & 0 deletions tests/ServerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,4 @@

expect($server->getProcess())->toBeInstanceOf(Process::class);
});

0 comments on commit 6414812

Please sign in to comment.