Skip to content

Commit 158174b

Browse files
ENGCOM-6235: Clearer PHPDocs comment for AbstractBlock and Escaper #25478
- Merge Pull Request #25478 from edward-simpson/magento2:abstractblock-phpdocs-escapejsquote - Merged commits: 1. ab1d4d6 2. 9bbc8f2 3. 26fefb1 4. 43c659e
2 parents 3e23510 + 43c659e commit 158174b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

lib/internal/Magento/Framework/Escaper.php

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

312312
/**
313-
* Escape quotes in java script
313+
* Escape single quotes/apostrophes ('), or other specified $quote character in javascript
314314
*
315-
* @param string|array $data
315+
* @param string|string[]|array $data
316316
* @param string $quote
317317
* @return string|array
318318
* @deprecated 100.2.0

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -995,10 +995,11 @@ public function escapeQuote($data, $addSlashes = false)
995995
}
996996

997997
/**
998-
* Escape quotes in java scripts
998+
* Escape single quotes/apostrophes ('), or other specified $quote character in javascript
999999
*
1000-
* @param string|array $data
1000+
* @param string|string[]|array $data
10011001
* @param string $quote
1002+
*
10021003
* @return string|array
10031004
* @deprecated 100.2.0
10041005
*/

0 commit comments

Comments
 (0)