mirror of
https://github.com/laravel/valet.git
synced 2026-02-04 08:10:07 +01:00
Merge pull request #1242 from NasirNobin/master
Remove preg_replace deprecation warning
This commit is contained in:
@@ -324,7 +324,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