Skip to content

Commit 6d28617

Browse files
author
Yuri Kovsher
committed
MAGETWO-34920: Catch all exceptions inside of Phrase::__toString() method and log messages
1 parent 1c37bf3 commit 6d28617

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lib/internal/Magento/Framework/Phrase/Renderer/Inline.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public function __construct(
5151
* @param [] $arguments
5252
* @return string
5353
* @throws \Exception
54+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
5455
*/
5556
public function render(array $source, array $arguments)
5657
{

lib/internal/Magento/Framework/Phrase/Renderer/Translate.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public function __construct(
4444
* @param [] $arguments
4545
* @return string
4646
* @throws \Exception
47+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
4748
*/
4849
public function render(array $source, array $arguments)
4950
{

0 commit comments

Comments
 (0)