Skip to content

Commit

Permalink
Fix failing Unit Test due to Page ID that can be INT
Browse files Browse the repository at this point in the history
  • Loading branch information
lbajsarowicz committed Mar 16, 2020
1 parent f49060b commit 4fd4f99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/Cms/Helper/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public function __construct(
public function prepareResultPage(ActionInterface $action, $pageId = null)
{
if ($pageId !== null && $pageId !== $this->_page->getId()) {
$delimiterPosition = strrpos($pageId, '|');
$delimiterPosition = strrpos((string)$pageId, '|');
if ($delimiterPosition) {
$pageId = substr($pageId, 0, $delimiterPosition);
}
Expand Down

0 comments on commit 4fd4f99

Please sign in to comment.