Skip to content

Commit dd16833

Browse files
committed
docs: fix @param in Common
1 parent 40f32f5 commit dd16833

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

system/Common.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -414,10 +414,11 @@ function env(string $key, $default = null)
414414
* If $data is an array, then it loops over it, escaping each
415415
* 'value' of the key/value pairs.
416416
*
417-
* Valid context values: html, js, css, url, attr, raw
418-
*
419417
* @param array|string $data
420-
* @param string $encoding
418+
* @param string $context Valid context values: html, js, css, url, attr, raw
419+
* @param string|null $encoding Current encoding for escaping.
420+
* If not UTF-8, we convert strings from this encoding
421+
* pre-escaping and back to this encoding post-escaping.
421422
*
422423
* @return array|string
423424
*

0 commit comments

Comments
 (0)