private static function getVersionFrom($path)
    {
        $matches = [];
        preg_match(self::$semverRegex, $path, $matches);

        return array_shift($matches);
    }
private static function getVersionFrom($path)
    {
        $matches = [];
        preg_match(self::$semverRegex, $path, $matches);

        return array_shift($matches);
    }
private static function getVersionFrom ( $ path ) { $ matches = [ ] ; preg_match ( self :: $ semverRegex , $ path , $ matches ) ; return array_shift ( $ matches ) ; }
Returns the first match of a semver version number in the path.
@param $path
@return mixed
Returns the first match of a semver version number in the path .