Skip to content

Commit

Permalink
Update LocatesPhpBinary.php
Browse files Browse the repository at this point in the history
  • Loading branch information
mpociot committed Jul 27, 2023
1 parent 4f23144 commit 0d607f7
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/Concerns/LocatesPhpBinary.php
Original file line number Diff line number Diff line change
Expand Up @@ -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/';
}
}

0 comments on commit 0d607f7

Please sign in to comment.