ci: fix psalm check
This commit is contained in:
parent
9137526abc
commit
822bf92a47
@ -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"/>
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user