show available github release only if newer version exists (#4037)

This commit is contained in:
Kevin Papst
2023-05-20 13:49:31 +02:00
committed by GitHub
parent 6bdf27fc9b
commit 2664d6117f
5 changed files with 20 additions and 14 deletions

View File

@@ -22,6 +22,8 @@ final class ReleaseVersion
* Get all releases from GitHub.
*
* @throws \Exception
* @return array|null
* @return array<string, array{'version': string, 'date': \DateTimeInterface, 'url': string, 'download': string, 'content': string}>
* @return array
*/
private function getReleasesFromGithub(): array
@@ -93,7 +95,7 @@ final class ReleaseVersion
* - content (string, release notes)
*
* @param bool $compatible
* @return array|null
* @return array{'version': string, 'date': \DateTimeInterface, 'url': string, 'download': string, 'content': string}|null
* @throws \Exception
*/
public function getLatestReleaseFromGithub(bool $compatible): ?array