Skip to content

Commit 5991fa2

Browse files
committed
docs: fix incorrect method name
1 parent cf53f0f commit 5991fa2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

user_guide_src/source/incoming/incomingrequest.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ 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

0 commit comments

Comments
 (0)