Skip to content

Commit 9bbc8f2

Browse files
Simplifying Escaper and AbstractBlock escapeJsQuote description and modifying PHPDoc param to specify can be string and array of strings
1 parent ab1d4d6 commit 9bbc8f2

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

lib/internal/Magento/Framework/Escaper.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -310,10 +310,9 @@ public function escapeCss($string)
310310
}
311311

312312
/**
313-
* Escape single quotes/apostrophes ('), or other specified $quote character
314-
* in javascript (string or array of strings)
313+
* Escape single quotes/apostrophes ('), or other specified $quote character in javascript
315314
*
316-
* @param string|array $data
315+
* @param string|string[]|array $data
317316
* @param string $quote
318317
* @return string|array
319318
* @deprecated 100.2.0

lib/internal/Magento/Framework/View/Element/AbstractBlock.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -985,10 +985,9 @@ public function escapeQuote($data, $addSlashes = false)
985985
}
986986

987987
/**
988-
* Escape single quotes/apostrophes ('), or other specified $quote character
989-
* in javascript (string or array of strings)
988+
* Escape single quotes/apostrophes ('), or other specified $quote character in javascript
990989
*
991-
* @param string|array $data
990+
* @param string|string[]|array $data
992991
* @param string $quote
993992
*
994993
* @return string|array

0 commit comments

Comments
 (0)