File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -49,16 +49,16 @@ public function getCurrentVersion(): string
49
49
/**
50
50
* @throws \RuntimeException
51
51
*/
52
- public function getSupportedVersions (): array
52
+ public function getMaintainedVersions (): array
53
53
{
54
54
$ response = $ this ->httpClient ->request ('GET ' , 'https://symfony.com/releases.json ' );
55
55
$ data = $ response ->toArray (true );
56
- $ versions = $ data ['supported_versions ' ] ?? null ;
56
+ $ versions = $ data ['maintained_versions ' ] ?? null ;
57
57
58
58
if (is_array ($ versions ) && count ($ versions ) > 0 ) {
59
59
return $ versions ;
60
60
}
61
61
62
- throw new \RuntimeException ('Could not fetch supported versions ' );
62
+ throw new \RuntimeException ('Could not fetch maintained versions ' );
63
63
}
64
64
}
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public function onPullRequest(GitHubEvent $event)
41
41
}
42
42
43
43
try {
44
- $ validBranches = $ this ->symfonyVersionProvider ->getSupportedVersions ();
44
+ $ validBranches = $ this ->symfonyVersionProvider ->getMaintainedVersions ();
45
45
} catch (\Throwable $ e ) {
46
46
$ this ->logger ->error ('Failed to get valid branches ' , ['exception ' => $ e ]);
47
47
You can’t perform that action at this time.
0 commit comments