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
*/
protected function prepareChangelogFiles(?string
$version = null, bool
$includeFeatureFlags = false
): ChangelogFileCollection
{ $entries =
new ChangelogFileCollection();
$finder =
new Finder();
$finder->
in($version ?
$this->
getTargetReleaseDir($version) :
$this->
getUnreleasedDir())->
files()->
sortByName()->
depth('0'
)->
name('*.md'
);