protected renderMinorVersion ( string $version ) : string | ||
$version | string | For example "2.3.7" |
Résultat | string | For example "2.3" |
protected function renderMinorVersion($version)
{
preg_match('/^(\\d+\\.\\d+)/', $version, $versionMatches);
return isset($versionMatches[1]) ? $versionMatches[1] : '';
}