Skip to content

Commit 905132b

Browse files
ENGCOM-3598: Use the new json serializer which throws an error when failing #16154
- Merge Pull Request #16154 from storefront-bvba/magento2:layout-config-serializer-fix - Merged commits: 1. da7f293 2. d7a11d7 3. 46a9ed5
2 parents 065b9ba + 46a9ed5 commit 905132b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/code/Magento/Checkout/Block/Onepage.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ class Onepage extends \Magento\Framework\View\Element\Template
5050
* @param array $data
5151
* @param \Magento\Framework\Serialize\Serializer\Json $serializer
5252
* @param \Magento\Framework\Serialize\SerializerInterface $serializerInterface
53+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
5354
*/
5455
public function __construct(
5556
\Magento\Framework\View\Element\Template\Context $context,
@@ -71,7 +72,7 @@ public function __construct(
7172
}
7273

7374
/**
74-
* @return string
75+
* @inheritdoc
7576
*/
7677
public function getJsLayout()
7778
{
@@ -116,6 +117,8 @@ public function getBaseUrl()
116117
}
117118

118119
/**
120+
* Retrieve serialized checkout config.
121+
*
119122
* @return bool|string
120123
* @since 100.2.0
121124
*/

0 commit comments

Comments
 (0)