Skip to content

Commit

Permalink
Merge branch '1.15' into 1
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Aug 27, 2024
2 parents f796d19 + c96920c commit 4b76a96
Show file tree
Hide file tree
Showing 2 changed files with 309 additions and 33 deletions.
5 changes: 3 additions & 2 deletions job_creator.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ private function isAllowedPhpVersion(string $phpVersion)
private function getInstallerBranch(): string
{
$version = str_replace('.x-dev', '', $this->installerVersion);
if (!in_array($this->repoName, FORCE_INSTALLER_REPOS) && isset($this->repoData['type']) && $this->repoData['type'] === 'recipe') {
if (in_array($this->repoName, NO_INSTALLER_REPOS) || (!in_array($this->repoName, FORCE_INSTALLER_REPOS) && isset($this->repoData['type']) && $this->repoData['type'] === 'recipe')) {
$cmsMajor = BranchLogic::getCmsMajor($this->repoData, $this->branch, $this->getComposerJsonContent()) ?: MetaData::LOWEST_SUPPORTED_CMS_MAJOR;
if (preg_match('#^[1-9]\.([0-9]+)$#', $this->branch, $matches)) {
$version = sprintf('%d.%d', $cmsMajor, $matches[1]);
Expand Down Expand Up @@ -346,7 +346,8 @@ private function createPhpunitJobs(
*/
private function getListOfPhpVersionsByBranchName(): array
{
return MetaData::PHP_VERSIONS_FOR_CMS_RELEASES[$this->getInstallerBranch()] ?? MetaData::PHP_VERSIONS_FOR_CMS_RELEASES['4'];
$branch = $this->getInstallerBranch();
return MetaData::PHP_VERSIONS_FOR_CMS_RELEASES[$branch] ?? MetaData::PHP_VERSIONS_FOR_CMS_RELEASES['4'];
}

/**
Expand Down
Loading

0 comments on commit 4b76a96

Please sign in to comment.