Add support for ~/+ in addition to - as separator between PHP version and build details, fixes #1322
parent
de3188ca7d
commit
172414a1f0
|
@ -30,7 +30,7 @@ class PlatformRepository extends ArrayRepository
|
|||
$prettyVersion = PHP_VERSION;
|
||||
$version = $versionParser->normalize($prettyVersion);
|
||||
} catch (\UnexpectedValueException $e) {
|
||||
$prettyVersion = preg_replace('#^(.+?)(-.+)?$#', '$1', PHP_VERSION);
|
||||
$prettyVersion = preg_replace('#^([^~+-]+).*$#', '$1', PHP_VERSION);
|
||||
$version = $versionParser->normalize($prettyVersion);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue