Skip to content

Commit 3214c59

Browse files
committed
bug #175 Consider branch 6.0 as maintained (nicolas-grekas)
This PR was merged into the master branch. Discussion ---------- Consider branch 6.0 as maintained Commits ------- 2a37ead Consider branch 6.0 as maintained
2 parents b5c777d + 2a37ead commit 3214c59

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Service/SymfonyVersionProvider.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,16 @@ public function getCurrentVersion(): string
4949
/**
5050
* @throws \RuntimeException
5151
*/
52-
public function getSupportedVersions(): array
52+
public function getMaintainedVersions(): array
5353
{
5454
$response = $this->httpClient->request('GET', 'https://symfony.com/releases.json');
5555
$data = $response->toArray(true);
56-
$versions = $data['supported_versions'] ?? null;
56+
$versions = $data['maintained_versions'] ?? null;
5757

5858
if (is_array($versions) && count($versions) > 0) {
5959
return $versions;
6060
}
6161

62-
throw new \RuntimeException('Could not fetch supported versions');
62+
throw new \RuntimeException('Could not fetch maintained versions');
6363
}
6464
}

src/Subscriber/UnsupportedBranchSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function onPullRequest(GitHubEvent $event)
4141
}
4242

4343
try {
44-
$validBranches = $this->symfonyVersionProvider->getSupportedVersions();
44+
$validBranches = $this->symfonyVersionProvider->getMaintainedVersions();
4545
} catch (\Throwable $e) {
4646
$this->logger->error('Failed to get valid branches', ['exception' => $e]);
4747

0 commit comments

Comments
 (0)