Skip to content

Commit

Permalink
Merge pull request #255 from azmeuk/media-thumbnail-deprecation
Browse files Browse the repository at this point in the history
Deprecated isThumbnail
  • Loading branch information
alexdebril authored Dec 10, 2019
2 parents 5f193d3 + f1242e7 commit 30142fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/FeedIo/Feed/Item/Media.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,12 @@ public function setNodeName(string $nodeName) : MediaInterface
}

/**
* @deprecated
* @return bool
*/
public function isThumbnail() : bool
{
trigger_error('Method isThumbnail is deprecated and will be removed in feed-io 5.0', E_USER_DEPRECATED);
return $this->nodeName === 'media:thumbnail';
}

Expand Down

0 comments on commit 30142fe

Please sign in to comment.