core-bundle/src/Util/PackageUtil.php
public static function getNormalizedVersion(string $packageName): string
    {
        $chunks = explode('.', static::getVersion($packageName));
        $chunks += [0, 0, 0];

        if (\count($chunks) > 3) {
            $chunks = \array_slice($chunks, 0, 3);
        }

        return implode('.', $chunks);
    }
public static function getNormalizedVersion(string $packageName): string
    {
        $chunks = explode('.', static::getVersion($packageName));
        $chunks += [0, 0, 0];

        if (\count($chunks) > 3) {
            $chunks = \array_slice($chunks, 0, 3);
        }

        return implode('.', $chunks);
    }
Returns the version number as "major.minor.patch".