From 0d607f71b81aeac36bdc65f89d1f36de12fd498a Mon Sep 17 00:00:00 2001 From: Marcel Pociot Date: Fri, 28 Jul 2023 01:20:56 +0200 Subject: [PATCH] Update LocatesPhpBinary.php --- src/Concerns/LocatesPhpBinary.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/Concerns/LocatesPhpBinary.php b/src/Concerns/LocatesPhpBinary.php index f5fb7ac..9f8b795 100644 --- a/src/Concerns/LocatesPhpBinary.php +++ b/src/Concerns/LocatesPhpBinary.php @@ -13,17 +13,12 @@ protected function binaryPackageDirectory(): string } /** - * Calculate the path to the PHP binary based on the OS + * Returns the path to the PHP binary. * * @return string The path to the PHP binary (not including the filename) */ public function phpBinaryPath(): string { - return $this->binaryPackageDirectory().'bin/'.match (PHP_OS_FAMILY) { - 'Windows' => 'win', - 'Darwin' => 'mac', - 'Linux' => 'linux', - }; - + return $this->binaryPackageDirectory().'bin/'; } }