Skip to content

Commit f7ff60f

Browse files
author
Dmytro Poperechnyy
committed
MAGETWO-33060: Refactor __() to return Phrase object
- AbstractAggregateException->addError() method updated for it to set message property as string;
1 parent 6cbccd2 commit f7ff60f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/Exception/AbstractAggregateException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function addError($rawMessage, array $params = [])
7474
// First call: simply overwrite the message and params
7575
$this->rawMessage = $rawMessage;
7676
$this->params = $params;
77-
$this->message = __($rawMessage, $params);
77+
$this->message = (string)__($rawMessage, $params);
7878
} elseif (2 === $this->addErrorCalls) {
7979
// Second call: store the error from the first call and the second call in the array
8080
// restore the message and params to their original value

0 commit comments

Comments
 (0)