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
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}
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments