A comment used in FormattableMarkup::placeholderFormat() code contains the following sentence.
Convert object to a string nad not string that is not sanitized.
nad should be and, but the sentence is still not correct.
The comment for the correct example says Convert object to a sanitized string. This comment should say Implicitly convert an object to a string, which is not sanitized.
Furthermore, some of the comments for the example code use a verb declined to the third singular person, when they should not; some of the comments are missing an article. The MR fixes those comments too.
Issue fork drupal-3518952
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3518952-correct-the-comment
changes, plain diff MR !11812
Comments
Comment #2
avpadernoComment #4
avpadernoComment #5
avpadernoComment #6
smustgrave commentedCan the title be updated slightly to match what's being fixed.
Thanks
Comment #7
avpadernoComment #8
avpadernoComment #9
smustgrave commentedThanks!
Change LGTM.
Comment #10
quietone commentedNeeds a rebase
Comment #12
quietone commentedSomething went wrong here. The rebase has lost all the changes in the previous 2 commits and has reverted changes in a recent commit, for #3498468: The example code given for FormattableMarkup::placeholderFormat() contains typos and syntax errors.
Comment #13
prabha1997 commentedThanks @quietone for pointing that out! I’ve rebased the MR again and resolved the conflicts. Could you please check if the issue still persists? Let me know if anything else needs to be adjusted.
Comment #14
avpadernoThe merge request now includes all the changes introduced in the merged MR.
Comment #15
quietone commentedComment #16
avpadernoComment #20
quietone commentedPushed to 11.x. Also pushed to 11.1.x since it is a non-disruptive.
Thanks!