diff --git a/app/code/Magento/Sitemap/Model/Sitemap.php b/app/code/Magento/Sitemap/Model/Sitemap.php index b88ff704b5807..2fc4319867806 100644 --- a/app/code/Magento/Sitemap/Model/Sitemap.php +++ b/app/code/Magento/Sitemap/Model/Sitemap.php @@ -1,7 +1,7 @@ getCollection() as $image) { $row .= ''; $row .= '' . $this->_escaper->escapeUrl($image->getUrl()) . ''; - $row .= '' . $this->escapeXmlText($images->getTitle()) . ''; + $row .= '' . $this->escapeXmlText((string)$images->getTitle()) . ''; if ($image->getCaption()) { - $row .= '' . $this->escapeXmlText($image->getCaption()) . ''; + $row .= '' . $this->escapeXmlText((string)$image->getCaption()) . ''; } $row .= ''; } @@ -815,6 +815,7 @@ public function getSitemapUrl($sitemapPath, $sitemapFileName) * @return bool * @deprecated 100.1.5 Because the robots.txt file is not generated anymore, * this method is not needed and will be removed in major release. + * @see Nothing */ protected function _isEnabledSubmissionRobots() { @@ -829,6 +830,7 @@ protected function _isEnabledSubmissionRobots() * @return void * @deprecated 100.1.5 Because the robots.txt file is not generated anymore, * this method is not needed and will be removed in major release. + * @see Nothing */ protected function _addSitemapToRobotsTxt($sitemapFileName) {