Skip to content

Commit

Permalink
Merge pull request #8790 from obozdag/patch-7
Browse files Browse the repository at this point in the history
docs: Small typos in incomingrequest.rst
  • Loading branch information
samsonasik authored Apr 15, 2024
2 parents ef069a5 + 5750027 commit 6a65664
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions user_guide_src/source/incoming/incomingrequest.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ is()

.. versionadded:: 4.3.0

Since v4.3.0, you can use the ``is()`` method. It accepts a HTTP method, ``'ajax'``,
Since v4.3.0, you can use the ``is()`` method. It accepts an HTTP method, ``'ajax'``,
or ``'json'``, and returns boolean.

.. note:: HTTP method should be case-sensitive, but the parameter is case-insensitive.
Expand All @@ -64,10 +64,10 @@ You can check the HTTP method that this request represents with the ``getMethod(
The HTTP method is case-sensitive, and by convention, standardized methods are
defined in all-uppercase US-ASCII letters.

.. note:: Prior to v4.5.0, by default, the method was returned as a lower-case
.. note:: Prior to v4.5.0, by default, the method was returned as a lowercase
string (i.e., ``'get'``, ``'post'``, etc). But it was a bug.

You can get an lowercase version by wrapping the call in ``strtolower()``::
You can get a lowercase version by wrapping the call in ``strtolower()``::

// Returns 'get'
$method = strtolower($request->getMethod());
Expand Down

0 comments on commit 6a65664

Please sign in to comment.