diff --git a/src/Libs/Servers/JellyfinServer.php b/src/Libs/Servers/JellyfinServer.php index 5144419d..b61a2ddc 100644 --- a/src/Libs/Servers/JellyfinServer.php +++ b/src/Libs/Servers/JellyfinServer.php @@ -615,7 +615,7 @@ class JellyfinServer implements ServerInterface $ignoreIds = null; if (null !== ($this->options['ignore'] ?? null)) { - $ignoreIds = array_map(fn($v) => trim($v), explode(',', $this->options['ignore'])); + $ignoreIds = array_map(fn($v) => trim($v), explode(',', (string)$this->options['ignore'])); } $list = []; diff --git a/src/Libs/Servers/PlexServer.php b/src/Libs/Servers/PlexServer.php index 1ef367b5..90b7b460 100644 --- a/src/Libs/Servers/PlexServer.php +++ b/src/Libs/Servers/PlexServer.php @@ -453,7 +453,7 @@ class PlexServer implements ServerInterface $ignoreIds = null; if (null !== ($this->options['ignore'] ?? null)) { - $ignoreIds = array_map(fn($v) => (int)trim($v), explode(',', $this->options['ignore'])); + $ignoreIds = array_map(fn($v) => (int)trim($v), explode(',', (string)$this->options['ignore'])); } $promises = []; @@ -650,7 +650,7 @@ class PlexServer implements ServerInterface $ignoreIds = null; if (null !== ($this->options['ignore'] ?? null)) { - $ignoreIds = array_map(fn($v) => (int)trim($v), explode(',', $this->options['ignore'])); + $ignoreIds = array_map(fn($v) => (int)trim($v), explode(',', (string)$this->options['ignore'])); } $list = []; diff --git a/tests/Fixtures/EpisodeEntity.php b/tests/Fixtures/EpisodeEntity.php index f07d6dd7..838f7426 100644 --- a/tests/Fixtures/EpisodeEntity.php +++ b/tests/Fixtures/EpisodeEntity.php @@ -10,15 +10,15 @@ return [ 'updated' => 0, 'watched' => 1, 'meta' => [ - "via" => "EMBY@Home", - "series" => "Series Title", - "year" => 2020, - "season" => 1, - "episode" => 2, - "title" => "Episode Title", - "date" => "2020-01-03", - "webhook" => [ - "event" => "media.scrobble" + 'via' => 'EMBY@Home', + 'series' => 'Series Title', + 'year' => 2020, + 'season' => 1, + 'episode' => 2, + 'title' => 'Episode Title', + 'date' => '2020-01-03', + 'webhook' => [ + 'event' => 'media.scrobble' ], ], 'guid_plex' => StateInterface::TYPE_EPISODE . '/6000',