diff --git a/Plugin/SeoRender.php b/Plugin/SeoRender.php index d482a3a..73000eb 100755 --- a/Plugin/SeoRender.php +++ b/Plugin/SeoRender.php @@ -516,7 +516,7 @@ public function showProductStructuredData() ]; if ($review->getRatingVotes()->getData()) { $ratingVotes = $review->getRatingVotes()->getData(); - $vote = array_first($ratingVotes); + $vote = current($ratingVotes); $reviewData['reviewRating'] = [ '@type' => 'Rating', 'ratingValue' => $vote['percent'],