static string|null normalize(string $version, int|null $precision)
Normalizes a version string to the number of components given in the parameter $precision.
Examples:
Version::normalize('1.2.3', 1);
// => '1'
Version::normalize('1.2.3', 2);
// => '1.2'
Please login to continue.