Skip to content

Commit 4fd4f99

Browse files
committed
Fix failing Unit Test due to Page ID that can be INT
1 parent f49060b commit 4fd4f99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Cms/Helper/Page.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public function __construct(
158158
public function prepareResultPage(ActionInterface $action, $pageId = null)
159159
{
160160
if ($pageId !== null && $pageId !== $this->_page->getId()) {
161-
$delimiterPosition = strrpos($pageId, '|');
161+
$delimiterPosition = strrpos((string)$pageId, '|');
162162
if ($delimiterPosition) {
163163
$pageId = substr($pageId, 0, $delimiterPosition);
164164
}

0 commit comments

Comments
 (0)