Skip to content

Commit 50b333d

Browse files
committed
fix: class import error
1 parent c7d1dbd commit 50b333d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Proc/ProcessUtil.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
use Closure;
1313
use RuntimeException;
14+
use Toolkit\Stdlib\OS;
1415
use function pcntl_fork;
1516
use function pcntl_waitpid;
1617
use function pcntl_wexitstatus;
@@ -689,14 +690,14 @@ public static function changeScriptOwner(string $user, string $group = ''): void
689690
*/
690691
public static function hasPcntl(): bool
691692
{
692-
return !OSEnv::isWindows() && function_exists('pcntl_fork');
693+
return !OS::isWindows() && function_exists('pcntl_fork');
693694
}
694695

695696
/**
696697
* @return bool
697698
*/
698699
public static function hasPosix(): bool
699700
{
700-
return !OSEnv::isWindows() && function_exists('posix_kill');
701+
return !OS::isWindows() && function_exists('posix_kill');
701702
}
702703
}

0 commit comments

Comments
 (0)