Skip to content

Conversation

jdreesen
Copy link
Contributor

@jdreesen jdreesen commented Dec 9, 2019

UnicodeString::fromCodePoints() returns a UnicodeString so the next line // $foo = 'नमस्ते' is not correct as it implies the result to be a string.

Thus, the result should be casted to a string (or ->toString() should be called) to match the comment.

@OskarStark OskarStark added this to the 5.0 milestone Dec 10, 2019
javiereguiluz added a commit that referenced this pull request Dec 10, 2019
This PR was merged into the 5.0 branch.

Discussion
----------

Fix `UnicodeString::fromCodePoints()` example

`UnicodeString::fromCodePoints()` returns a `UnicodeString` so the next line `// $foo = 'नमस्ते'` is not correct as it implies the result to be a `string`.

Thus, the result should be casted to a `string` (or `->toString()` should be called) to match the comment.

Commits
-------

6793fbe Fix UnicodeString::fromCodePoints example
@javiereguiluz javiereguiluz merged commit 6793fbe into symfony:5.0 Dec 10, 2019
@jdreesen jdreesen deleted the patch-2 branch December 10, 2019 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants