Skip to content

Commit 5568b8d

Browse files
committed
Add back in the type for the $jsonEncoder object injected into CustomerScopeData
1 parent eaad78c commit 5568b8d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

app/code/Magento/Customer/Block/CustomerScopeData.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,16 @@ class CustomerScopeData extends \Magento\Framework\View\Element\Template
2525
private $serializer;
2626

2727
/**
28+
* CustomerScopeData constructor.
2829
* @param \Magento\Framework\View\Element\Template\Context $context
29-
* @param $jsonEncoder
30+
* @param \Magento\Framework\Json\EncoderInterface $jsonEncoder
3031
* @param array $data
3132
* @param \Magento\Framework\Serialize\Serializer\Json|null $serializer
32-
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
33+
* @throws \RuntimeException
3334
*/
3435
public function __construct(
3536
\Magento\Framework\View\Element\Template\Context $context,
36-
$jsonEncoder,
37+
\Magento\Framework\Json\EncoderInterface $jsonEncoder,
3738
array $data = [],
3839
\Magento\Framework\Serialize\Serializer\Json $serializer = null
3940
) {

0 commit comments

Comments
 (0)