1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-04 08:10:07 +01:00

remove preg_replace deprecation warning

This commit is contained in:
NasirNobin
2022-04-16 18:47:38 +06:00
parent d44f4a3b71
commit 0267da704e
2 changed files with 3 additions and 1 deletions

View File

@@ -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);
}
/**