diff --git a/src/helpers/Sitemap.php b/src/helpers/Sitemap.php index 924b5d6f4..2c97e4083 100644 --- a/src/helpers/Sitemap.php +++ b/src/helpers/Sitemap.php @@ -321,7 +321,7 @@ public static function generateSitemap(array $params) ); foreach ($blockFields as $blockField) { $blocks = $element[$blockField]->all(); - /** @var MatrixBlock[]|NeoBlock[]|SuperTableBlock[] $blocks */ + /** @var MatrixBlock[]|NeoBlock[]|SuperTableBlock[]|object[] $blocks */ foreach ($blocks as $block) { $assetFields = []; if ($block instanceof MatrixBlock) { @@ -365,7 +365,7 @@ public static function generateSitemap(array $params) ); foreach ($blockFields as $blockField) { $blocks = $element[$blockField]->all(); - /** @var MatrixBlock[]|NeoBlock[]|SuperTableBlock[] $blocks */ + /** @var MatrixBlock[]|NeoBlock[]|SuperTableBlock[]|object[] $blocks */ foreach ($blocks as $block) { $assetFields = []; if ($block instanceof MatrixBlock) {