Skip to content

Commit

Permalink
[DOCS] Reference to function for better usage does not exist
Browse files Browse the repository at this point in the history
Function getScriptPath is not implemented. PHPDoc block of function
getPathInfo points to getScriptName.

Resolves: #94095
Releases: master, 10.4, 9.5
Change-Id: I6329cff8ace4a3b5562e6d2d568dbed6d69c0ae5
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/69112
Tested-by: core-ci <typo3@b13.com>
Tested-by: Richard Haeser <richard@richardhaeser.com>
Reviewed-by: Richard Haeser <richard@richardhaeser.com>
  • Loading branch information
Mabahe authored and haassie committed May 10, 2021
1 parent 76c5d9d commit 06d1e46
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Some further old :php:`getIndpEnv()` arguments directly access :php:`$request->s
normalization. These have been transferred to the new class, too, but will be deprecated later if the core does not use
these anymore:

- :php:`PATH_INFO` is now :php:`->getPathInfo()`, but better use :php:`->getScriptPath()` instead
- :php:`PATH_INFO` is now :php:`->getPathInfo()`, but better use :php:`->getScriptName()` instead
- :php:`HTTP_REFERER` is now :php:`->getHttpReferer()`, but better use :php:`$request->getServerParams()['HTTP_REFERER']` instead
- :php:`HTTP_USER_AGENT` is now :php:`->getHttpUserAgent()`, but better use :php:`$request->getServerParams()['HTTP_USER_AGENT']` instead
- :php:`HTTP_ACCEPT_ENCODING` is now :php:`->getHttpAcceptEncoding()`, but better use :php:`$request->getServerParams()['HTTP_ACCEPT_ENCODING']` instead
Expand All @@ -68,4 +68,4 @@ Impact
The PSR-7 request objects created by TYPO3 now contain an instance of :php:`NormalizedParams` which can
be used instead of :php:`GeneralUtility::getIndpEnv()` to access normalized server params.

.. index:: PHP-API
.. index:: PHP-API

0 comments on commit 06d1e46

Please sign in to comment.