Skip to content

Commit 39dac97

Browse files
committed
MAGETWO-97961: Fixed incorrect email template rendering
1 parent ab6e3ea commit 39dac97

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/internal/Magento/Framework/Filter/Template.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ protected function getParameters($value)
324324
* @return void
325325
* @throws \InvalidArgumentException
326326
*/
327-
private function validateVariableMethodCall($object, string $method)
327+
private function validateVariableMethodCall($object, $method)
328328
{
329329
if ($object === $this) {
330330
if (in_array(mb_strtolower($method), $this->restrictedMethods)) {
@@ -343,7 +343,7 @@ private function validateVariableMethodCall($object, string $method)
343343
* @return bool
344344
* @throws \InvalidArgumentException
345345
*/
346-
private function isAllowedDataObjectMethod($object, string $method)
346+
private function isAllowedDataObjectMethod($object, $method)
347347
{
348348
if ($object instanceof AbstractExtensibleModel || $object instanceof AbstractModel) {
349349
if (in_array(mb_strtolower($method), $this->restrictedMethods)) {

lib/internal/Magento/Framework/Filter/Test/Unit/TemplateTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ public function varDirectiveDataProvider()
210210
*
211211
* @return void
212212
*/
213-
public function testDisallowedMethods(string $method)
213+
public function testDisallowedMethods($method)
214214
{
215215
$this->templateFilter->setVariables(['store' => $this->store]);
216216
$this->templateFilter->filter('{{var store.' . $method . '()}}');

0 commit comments

Comments
 (0)