Skip to content

Commit 0d607f7

Browse files
authored
Update LocatesPhpBinary.php
1 parent 4f23144 commit 0d607f7

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/Concerns/LocatesPhpBinary.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,12 @@ protected function binaryPackageDirectory(): string
1313
}
1414

1515
/**
16-
* Calculate the path to the PHP binary based on the OS
16+
* Returns the path to the PHP binary.
1717
*
1818
* @return string The path to the PHP binary (not including the filename)
1919
*/
2020
public function phpBinaryPath(): string
2121
{
22-
return $this->binaryPackageDirectory().'bin/'.match (PHP_OS_FAMILY) {
23-
'Windows' => 'win',
24-
'Darwin' => 'mac',
25-
'Linux' => 'linux',
26-
};
27-
22+
return $this->binaryPackageDirectory().'bin/';
2823
}
2924
}

0 commit comments

Comments
 (0)