Skip to content

Commit

Permalink
linux build bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTechsTech committed Mar 27, 2020
1 parent bf73bd9 commit add7b3f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Spawn/Launcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ public function getSignaled(): ?int
/**
* @codeCoverageIgnore
*/
public static function uvLoop(?\UVLoop $loop)
public static function uvLoop(\UVLoop $loop)
{
self::$uv = $loop;
}
Expand Down
7 changes: 5 additions & 2 deletions Spawn/Spawn.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,12 @@ public static function create(
*
* @codeCoverageIgnore
*/
public static function setup(?\UVLoop $loop = null, bool $isYield = true, bool $bypass = true, bool $useUv = true): void
public static function setup($loop, bool $isYield = true, bool $bypass = true, bool $useUv = true): void
{
Launcher::uvLoop($loop);
if ($loop instanceof \UVLoop) {
Launcher::uvLoop($loop);
}

self::$bypass = $bypass;
self::$isYield = $isYield;
self::$useUv = $useUv;
Expand Down

0 comments on commit add7b3f

Please sign in to comment.