Make result nullable, because null can be returned
This commit is contained in:
parent
e92f712c64
commit
4a787fd100
@ -46,7 +46,7 @@ class PodcastDataReader {
|
||||
return $subscriptionChanges !== null;
|
||||
}
|
||||
|
||||
public function fetchPodcastData(string $url, string $userId): PodcastData {
|
||||
public function fetchPodcastData(string $url, string $userId): ?PodcastData {
|
||||
if (!$this->userHasPodcast($url, $userId)) {
|
||||
return null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user