Skip to content

Commit 54c7a40

Browse files
committed
Merge remote-tracking branch 'ed/php8-compatibility/fix-magento-phrases' into platform-health
2 parents be86329 + b81b1b7 commit 54c7a40

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

app/code/Magento/PageBuilder/Model/Stage/Renderer/CmsStaticBlock.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function render(array $params): array
9292
->load();
9393

9494
if ($blocks->count() === 0) {
95-
$result['error'] = sprintf(__('Block with ID: %s doesn\'t exist'), $params['block_id']);
95+
$result['error'] = sprintf(__('Block with ID: %s doesn\'t exist')->render(), $params['block_id']);
9696

9797
return $result;
9898
}

app/code/Magento/PageBuilder/Ui/Component/UrlInput/Page/Options.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function __construct(
4343
}
4444

4545
/**
46-
* {@inheritdoc}
46+
* @inheritdoc
4747
*
4848
* @return array
4949
*/
@@ -59,7 +59,7 @@ public function toOptionArray() : array
5959
$this->options[$pageId] = [
6060
'value' => $pageId,
6161
'label' => $item->getTitle(),
62-
'identifier' => sprintf(__('ID: %s'), $pageId)
62+
'identifier' => sprintf(__('ID: %s')->render(), $pageId)
6363
];
6464
}
6565
}

dev/tests/integration/testsuite/Magento/PageBuilder/Ui/Component/UrlInput/Page/OptionsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ private function prepareExpectedResult() : array
3434
$options[$pageId] = [
3535
'value' => $pageId,
3636
'label' => $item->getTitle(),
37-
'identifier' => sprintf(__('ID: %s'), $pageId)
37+
'identifier' => sprintf(__('ID: %s')->render(), $pageId)
3838
];
3939
}
4040
return $options;

0 commit comments

Comments
 (0)