Make result nullable, because null can be returned

This commit is contained in:
Patrizio Bekerle 2023-02-19 17:04:10 +01:00 committed by thrillfall
parent e92f712c64
commit 4a787fd100

View File

@ -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;
}