From 5750027a9d0870700ec13752b6ff4e5cdb140fba Mon Sep 17 00:00:00 2001 From: obozdag Date: Mon, 15 Apr 2024 08:49:45 +0200 Subject: [PATCH] docs: Small typos in incomingrequest.rst Change "a HTTP" to "an HTTP", "an lowercase" to "a lowercase" an "lower-case" to "lowercase". --- user_guide_src/source/incoming/incomingrequest.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/user_guide_src/source/incoming/incomingrequest.rst b/user_guide_src/source/incoming/incomingrequest.rst index 4ca22ba4d09d..0b6f3daab39e 100644 --- a/user_guide_src/source/incoming/incomingrequest.rst +++ b/user_guide_src/source/incoming/incomingrequest.rst @@ -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. @@ -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());