|
11 | 11 |
|
12 | 12 | use Closure;
|
13 | 13 | use RuntimeException;
|
| 14 | +use Toolkit\Stdlib\OS; |
14 | 15 | use function pcntl_fork;
|
15 | 16 | use function pcntl_waitpid;
|
16 | 17 | use function pcntl_wexitstatus;
|
@@ -689,14 +690,14 @@ public static function changeScriptOwner(string $user, string $group = ''): void
|
689 | 690 | */
|
690 | 691 | public static function hasPcntl(): bool
|
691 | 692 | {
|
692 | | - return !OSEnv::isWindows() && function_exists('pcntl_fork'); |
| 693 | + return !OS::isWindows() && function_exists('pcntl_fork'); |
693 | 694 | }
|
694 | 695 |
|
695 | 696 | /**
|
696 | 697 | * @return bool
|
697 | 698 | */
|
698 | 699 | public static function hasPosix(): bool
|
699 | 700 | {
|
700 | | - return !OSEnv::isWindows() && function_exists('posix_kill'); |
| 701 | + return !OS::isWindows() && function_exists('posix_kill'); |
701 | 702 | }
|
702 | 703 | }
|
0 commit comments