mirror of
https://github.com/laravel/valet.git
synced 2026-02-06 16:50:09 +01:00
Merge branch 'master' into feature/custom-site-stubs
This commit is contained in:
@@ -46,6 +46,8 @@ public function __construct(Brew $brew, CommandLine $cli, Filesystem $files, Con
|
||||
*/
|
||||
public function install()
|
||||
{
|
||||
info('Installing and configuring phpfpm...');
|
||||
|
||||
if (! $this->brew->hasInstalledPhp()) {
|
||||
$this->brew->ensureInstalled('php', [], $this->taps);
|
||||
}
|
||||
@@ -324,7 +326,7 @@ public function symlinkPrimaryValetSock($phpVersion)
|
||||
*/
|
||||
public function normalizePhpVersion($version)
|
||||
{
|
||||
return preg_replace('/(?:php@?)?([0-9+])(?:.)?([0-9+])/i', 'php@$1.$2', $version);
|
||||
return preg_replace('/(?:php@?)?([0-9+])(?:.)?([0-9+])/i', 'php@$1.$2', (string) $version);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user