public function getVersionParts(string $version) : array
    {
        $dots = explode('.', $version, 2);

        $majorVer = $dots[0];
        $minorVer = (isset($dots[1]) ? $dots[1] : '0');

        return [$majorVer, $minorVer];
    }
public function getVersionParts(string $version) : array
    {
        $dots = explode('.', $version, 2);

        $majorVer = $dots[0];
        $minorVer = (isset($dots[1]) ? $dots[1] : '0');

        return [$majorVer, $minorVer];
    }
public function getVersionParts ( string $ version ) : array { $ dots = explode ( '.' , $ version , 2 ) ; $ majorVer = $ dots [ 0 ] ; $ minorVer = ( isset ( $ dots [ 1 ] ) ? $ dots [ 1 ] : '0' ) ; return [ $ majorVer , $ minorVer ] ; }
splits a version into the major and the minor version

@param string $version

@return string[]
splits a version into the major and the minor version