Skip to content

Commit 64e6731

Browse files
committed
cast incoming untyped parameters to string type
1 parent 12a08ee commit 64e6731

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/Magento/Framework/Escaper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ public function escapeUrl($string)
291291
*/
292292
public function encodeUrlParam($string)
293293
{
294-
return $this->getEscaper()->escapeUrl($string);
294+
return $this->getEscaper()->escapeUrl((string)$string);
295295
}
296296

297297
/**
@@ -330,7 +330,7 @@ function ($matches) {
330330
*/
331331
public function escapeCss($string)
332332
{
333-
return $this->getEscaper()->escapeCss($string);
333+
return $this->getEscaper()->escapeCss((string)$string);
334334
}
335335

336336
/**

0 commit comments

Comments
 (0)