Skip to content

Commit 4e52b2d

Browse files
committed
Fixed the unit test case
1 parent 405ee6e commit 4e52b2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Variable/Model/Variable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public function getValue($type = null)
115115
$value = $this->getData('plain_value');
116116
//escape html if type is html, but html value is not defined
117117
if ($type == self::TYPE_HTML) {
118-
$value = nl2br($this->_escaper->escapeHtml($value));
118+
$value = nl2br((string)$this->_escaper->escapeHtml($value));
119119
}
120120
return $value;
121121
}

0 commit comments

Comments
 (0)