From aa142eb1dfd2e434cd964450772adfccc369b87d Mon Sep 17 00:00:00 2001 From: smiley Date: Thu, 31 Aug 2023 22:00:58 +0200 Subject: [PATCH] :shower: --- examples/Providers/Spotify/mixesdb-scrape.php | 2 +- examples/Providers/Spotify/playlist-diff.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/Providers/Spotify/mixesdb-scrape.php b/examples/Providers/Spotify/mixesdb-scrape.php index 762d307..77d0d81 100644 --- a/examples/Providers/Spotify/mixesdb-scrape.php +++ b/examples/Providers/Spotify/mixesdb-scrape.php @@ -90,7 +90,7 @@ $name = $pageDOM->getElementById('firstHeading')->nodeValue; - $logger->info($name); + $logger->info(($name ?? '')); // get the tracklist foreach($pageDOM->getElementsByTagName('ol') as $li){ diff --git a/examples/Providers/Spotify/playlist-diff.php b/examples/Providers/Spotify/playlist-diff.php index 010013e..c0fdb5a 100644 --- a/examples/Providers/Spotify/playlist-diff.php +++ b/examples/Providers/Spotify/playlist-diff.php @@ -19,6 +19,8 @@ * @var \Psr\Http\Message\RequestFactoryInterface $requestFactory * @var \Psr\Log\LoggerInterface $logger * @var string $CFGDIR + * + * @phan-suppress PhanInvalidCommentForDeclarationType */ require_once __DIR__.'/spotify-common.php';