From 822bf92a4711568cb2e8142ca4f6632d1c3b27e1 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Sat, 13 Jan 2024 00:34:32 +0100 Subject: [PATCH] ci: fix psalm check --- appinfo/info.xml | 6 ++++-- lib/Core/PodcastData/PodcastData.php | 15 +++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/appinfo/info.xml b/appinfo/info.xml index ec2966b..4cd2ccd 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -11,13 +11,15 @@ # Requirements You need to have [GPodderSync](https://apps.nextcloud.com/apps/gpoddersync) installed to use this app!]]> - 1.0.1 + 1.1.0 agpl - Xéfir Destiny + Xéfir Destiny RePod integration multimedia + https://git.crystalyx.net/Xefir/RePod https://git.crystalyx.net/Xefir/RePod/issues + https://example.com/2.jpg diff --git a/lib/Core/PodcastData/PodcastData.php b/lib/Core/PodcastData/PodcastData.php index e475142..4aa71b3 100644 --- a/lib/Core/PodcastData/PodcastData.php +++ b/lib/Core/PodcastData/PodcastData.php @@ -6,6 +6,18 @@ namespace OCA\RePod\Core\PodcastData; use OCA\GPodderSync\Core\PodcastData\PodcastData as CorePodcastData; +/** + * @psalm-type PodcastDataType = array{ + * title: ?string, + * author: ?string, + * link: ?string, + * description: ?string, + * imageUrl: ?string, + * fetchedAtUnix: int, + * imageBlob: ?string, + * atomLink: ?string + * } + */ class PodcastData extends CorePodcastData implements \JsonSerializable { public function __construct( @@ -64,6 +76,9 @@ class PodcastData extends CorePodcastData implements \JsonSerializable return $this->atomLink; } + /** + * @return PodcastDataType + */ public function toArrayWithExtras() { return array_merge(parent::toArray(), [ 'atomLink' => $this->atomLink,