diff --git a/src/Concerns/LocatesPhpBinary.php b/src/Concerns/LocatesPhpBinary.php index 95ad932b..0fa2e460 100644 --- a/src/Concerns/LocatesPhpBinary.php +++ b/src/Concerns/LocatesPhpBinary.php @@ -19,6 +19,11 @@ protected function binaryPackageDirectory(): string */ public function phpBinaryPath(): string { - return $this->binaryPackageDirectory().'bin/'.(PHP_OS_FAMILY === 'Windows' ? 'win' : 'mac'); + return $this->binaryPackageDirectory().'bin/'.match(PHP_OS_FAMILY) { + 'Windows' => 'win', + 'Darwin' => 'mac', + 'Linux' => 'linux', + }; +; } }