CodeExplorer getTargetNextMajorUpgradeFile example
$append[] =
$upgrade;
} } if (!\
count($append)) { return $output;
} $nextMajorVersionHeadline = '# ' .
$this->
getNextMajorVersion($version) . '.0.0' . \PHP_EOL;
array_unshift($append,
sprintf('## Introduced in %s',
$version));
$upgradeFile =
$this->
getTargetNextMajorUpgradeFile($version);
if (!
$dryRun) { if (!
$this->filesystem->
exists($upgradeFile)) { $this->filesystem->
touch($upgradeFile);
} $content =
file_get_contents($upgradeFile) ?: '';
$posLatestRelease =
strpos($content, '# '
);
$posLatestRelease =
$posLatestRelease ?: 0;
$content =