Skip to content

Commit

Permalink
Fix Ci
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreGauthier committed Mar 5, 2024
1 parent d3e9b86 commit cb459be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Model/Sitemap/CustomEntityProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
use Magento\Sitemap\Model\SitemapItemInterfaceFactory;
use Smile\CustomEntity\Api\CustomEntityRepositoryInterface;
use Smile\CustomEntity\Api\Data\CustomEntityInterface;
use Smile\CustomEntity\Model\Sitemap\ConfigReader;
use Smile\ScopedEav\Api\Data\EntityInterface;
use Smile\ScopedEav\Model\AbstractEntity;

/**
* Sitemap custom entity items provider.
Expand Down Expand Up @@ -81,6 +81,7 @@ public function getItems($storeId)
*/
protected function getImages(CustomEntityInterface $entity): ?DataObject
{
/** @var AbstractEntity $entity */
$image = $entity->getImageUrl(EntityInterface::IMAGE);

if (!$image) {
Expand Down

0 comments on commit cb459be

Please sign in to comment.