Skip to content

Commit b71b1db

Browse files
authored
Merge pull request #7007 from kenjis/fix-docs-incomingrequest.rst
docs: fix incomingrequest.rst
2 parents cf53f0f + c59b3c2 commit b71b1db

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

user_guide_src/source/incoming/incomingrequest.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ be checked with the ``isAJAX()`` and ``isCLI()`` methods:
4040
which in some cases is not sent by default in XHR requests via JavaScript (i.e., fetch).
4141
See the :doc:`AJAX Requests </general/ajax>` section on how to avoid this problem.
4242

43-
You can check the HTTP method that this request represents with the ``method()`` method:
43+
You can check the HTTP method that this request represents with the ``getMethod()`` method:
4444

4545
.. literalinclude:: incomingrequest/005.php
4646

4747
By default, the method is returned as a lower-case string (i.e., ``'get'``, ``'post'``, etc).
4848

49-
.. note:: The functionality to convert the return value to lower case is deprecated.
49+
.. important:: The functionality to convert the return value to lower case is deprecated.
5050
It will be removed in the future version, and this method will be PSR-7 equivalent.
5151

5252
You can get an

0 commit comments

Comments
 (0)