Skip to content

Commit 0384c62

Browse files
minor #62519 [HttpFoundation] Fix Request getPathInfo docblock (bobvandevijver)
This PR was merged into the 6.4 branch. Discussion ---------- [HttpFoundation] Fix Request getPathInfo docblock | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | yes | New feature? | no <!-- if yes, also update src/**/CHANGELOG.md --> | Deprecations? | no <!-- if yes, also update UPGRADE-*.md and src/**/CHANGELOG.md --> | Issues | - | License | MIT Fix incorrect example in `getPathInfo` docblock. It's return value will always start with `/`, so the first example cannot be an empty string. While this is also valid for 5.4 (and was fixed there as part of CVE-2025-64500, I'm now only submitting it for 6.4. Commits ------- fe802d288d6 Fix Request getPathInfo docblock
2 parents 716e385 + e439d60 commit 0384c62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ public function getScriptName(): string
857857
*
858858
* Suppose this request is instantiated from /mysite on localhost:
859859
*
860-
* * http://localhost/mysite returns an empty string
860+
* * http://localhost/mysite returns '/'
861861
* * http://localhost/mysite/about returns '/about'
862862
* * http://localhost/mysite/enco%20ded returns '/enco%20ded'
863863
* * http://localhost/mysite/about?var=1 returns '/about'

0 commit comments

Comments
 (0)