Skip to content

Commit 6a65664

Browse files
authored
Merge pull request #8790 from obozdag/patch-7
docs: Small typos in incomingrequest.rst
2 parents ef069a5 + 5750027 commit 6a65664

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

user_guide_src/source/incoming/incomingrequest.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ is()
4747

4848
.. versionadded:: 4.3.0
4949

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

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

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

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

7272
// Returns 'get'
7373
$method = strtolower($request->getMethod());

0 commit comments

Comments
 (0)