ci: fix psalm check
All checks were successful
repod / xml (push) Successful in 14s
repod / php (push) Successful in 59s
repod / nodejs (push) Successful in 2m13s
repod / release (push) Has been skipped

This commit is contained in:
Michel Roux 2024-01-13 00:34:32 +01:00
parent 9137526abc
commit 822bf92a47
2 changed files with 19 additions and 2 deletions

View File

@ -11,13 +11,15 @@
# Requirements
You need to have [GPodderSync](https://apps.nextcloud.com/apps/gpoddersync) installed to use this app!]]></description>
<version>1.0.1</version>
<version>1.1.0</version>
<licence>agpl</licence>
<author mail="xefir@crystalyx.net" homepage="https://git.crystalyx.net/Xefir/RePod">Xéfir Destiny</author>
<author mail="xefir@crystalyx.net" homepage="https://crystalyx.net">Xéfir Destiny</author>
<namespace>RePod</namespace>
<category>integration</category>
<category>multimedia</category>
<website>https://git.crystalyx.net/Xefir/RePod</website>
<bugs>https://git.crystalyx.net/Xefir/RePod/issues</bugs>
<screenshot>https://example.com/2.jpg</screenshot>
<dependencies>
<php min-version="8.0"/>
<nextcloud min-version="26" max-version="28"/>

View File

@ -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,