Skip to content

Commit 2d24af4

Browse files
committed
minor symfony#57277 [HttpFoundation] A more precise comment for HeaderUtils::split method. (kevinirlen)
This PR was squashed before being merged into the 7.2 branch. Discussion ---------- [HttpFoundation] A more precise comment for HeaderUtils::split method. | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | no | New feature? | no | Deprecations? | no Hi everybody :) # Information The current comment for HeaderUtils::split() contains an Unpaired symbol The line below to be more precise ``` // => ['da'], ['en-gb', 'q=0.8']] ``` `Unpaired symbol: '[' seems to be missing`  Maybe something like the one below ``` Will return: [['da'], ['en-gb', 'q=0.8']] ``` Commits ------- fa694a0 [HttpFoundation] A more precise comment for HeaderUtils::split method.
2 parents 0c89120 + fa694a0 commit 2d24af4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpFoundation/HeaderUtils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ private function __construct()
3434
* Example:
3535
*
3636
* HeaderUtils::split('da, en-gb;q=0.8', ',;')
37-
* // => ['da'], ['en-gb', 'q=0.8']]
37+
* # returns [['da'], ['en-gb', 'q=0.8']]
3838
*
3939
* @param string $separators List of characters to split on, ordered by
4040
* precedence, e.g. ',', ';=', or ',;='

0 commit comments

Comments
 (0)