throw new \
InvalidArgumentException('Unable to generate next version number, supplied version seems invalid (' .
$version . ')'
);
} $superVersion =
(int) $superVersion;
$majorVersion =
(int) $majorVersion;
return $superVersion . '.' .
($majorVersion + 1
);
} protected function getTargetUpgradeFile(string
$version, bool
$realPath = true
): string
{ return ($realPath ?
$this->
getUpgradeDir() . '/' : ''
) . \
sprintf('UPGRADE-%s.md',
$this->
getMajorVersion($version));
} /**
* @internal
*/
protected function getTargetNextMajorUpgradeFile(string
$version, bool
$realPath = true
): string
{ return ($realPath ?
$this->
getUpgradeDir() . '/' : ''
) . \
sprintf('UPGRADE-%s.md',
$this->
getNextMajorVersion($version));
} /**
* Prepare the list of changelog files which need to process
*/