Skip to content

Commit 6d4221d

Browse files
committed
fix phpstan issues
1 parent 2b3f593 commit 6d4221d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Builder/SocialPostBuilder.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,18 +277,22 @@ protected function getPlaylistItems(Client $client, string $playlistId, int $lim
277277

278278
protected function getThumbnail(ThumbnailDetails $thumbnailDetails): ?Thumbnail
279279
{
280+
/** @phpstan-ignore-next-line */
280281
if ($thumbnailDetails->getMaxres() !== null) {
281282
return $thumbnailDetails->getMaxres();
282283
}
283284

285+
/** @phpstan-ignore-next-line */
284286
if ($thumbnailDetails->getHigh() !== null) {
285287
return $thumbnailDetails->getHigh();
286288
}
287289

290+
/** @phpstan-ignore-next-line */
288291
if ($thumbnailDetails->getMedium() !== null) {
289292
return $thumbnailDetails->getMedium();
290293
}
291294

295+
/** @phpstan-ignore-next-line */
292296
if ($thumbnailDetails->getStandard() !== null) {
293297
return $thumbnailDetails->getStandard();
294298
}

0 commit comments

Comments
 (0)