Skip to content

Commit fc63748

Browse files
authored
Merge pull request #7019 from kenjis/fix-docs-upgrade_405.rst
docs: fix upgrade_405.rst
2 parents 03a707b + c22a3d8 commit fc63748

1 file changed

Lines changed: 20 additions & 20 deletions

File tree

user_guide_src/source/installation/upgrade_405.rst

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Please refer to the upgrade instructions corresponding to your installation meth
1616

1717
CodeIgniter 4.0.5 introduces a setting for the cookie SameSite attribute. Prior versions did not set this
1818
attribute at all. The default setting for cookies is now `Lax`. This will affect how cookies are handled in
19-
cross-domain contexts and you may need to adjust this setting in your projects. Separate settings in `app/Config/App.php`
19+
cross-domain contexts and you may need to adjust this setting in your projects. Separate settings in **app/Config/App.php**
2020
exists for Response cookies and for CSRF cookies.
2121

2222
For additional information, see `MDN Web Docs <https://developer.mozilla.org/pl/docs/Web/HTTP/Headers/Set-Cookie/SameSite>`_.
@@ -32,8 +32,8 @@ to all classes that extend ``Message`` as well: ``Request``, ``Response`` and th
3232

3333
Additional related deprecations from the HTTP layer:
3434

35-
* ``Message::isJSON``: Check the "Content-Type" header directly
36-
* ``Request[Interface]::isValidIP``: Use the Validation class with ``valid_ip``
35+
* ``Message::isJSON()``: Check the "Content-Type" header directly
36+
* ``Request[Interface]::isValidIP()``: Use the Validation class with ``valid_ip``
3737
* ``Request[Interface]::getMethod()``: The ``$upper`` parameter will be removed, use str_to_upper()
3838
* ``Request[Trait]::$ipAddress``: This property will become private
3939
* ``Request::$proxyIPs``: This property will be removed; access ``config('App')->proxyIPs`` directly
@@ -44,26 +44,26 @@ Additional related deprecations from the HTTP layer:
4444
**ResponseInterface**
4545

4646
This interface intends to include the necessary methods for any framework-compatible response class.
47-
A number of methods expected by the framework were missing and have noe been added. If you use any
47+
A number of methods expected by the framework were missing and have now been added. If you use any
4848
classes the implement ``ResponseInterface`` directly they will need to be compatible with the
4949
updated requirements. These methods are as follows:
5050

51-
* ``setLastModified($date);``
52-
* ``setLink(PagerInterface $pager);``
53-
* ``setJSON($body, bool $unencoded = false);``
54-
* ``getJSON();``
55-
* ``setXML($body);``
56-
* ``getXML();``
57-
* ``send();``
58-
* ``sendHeaders();``
59-
* ``sendBody();``
60-
* ``setCookie($name, $value = '', $expire = '', $domain = '', $path = '/', $prefix = '', $secure = false, $httponly = false, $samesite = null);``
61-
* ``hasCookie(string $name, string $value = null, string $prefix = ''): bool;``
62-
* ``getCookie(string $name = null, string $prefix = '');``
63-
* ``deleteCookie(string $name = '', string $domain = '', string $path = '/', string $prefix = '');``
64-
* ``getCookies();``
65-
* ``redirect(string $uri, string $method = 'auto', int $code = null);``
66-
* ``download(string $filename = '', $data = '', bool $setMime = false);``
51+
* ``setLastModified($date)``
52+
* ``setLink(PagerInterface $pager)``
53+
* ``setJSON($body, bool $unencoded = false)``
54+
* ``getJSON()``
55+
* ``setXML($body)``
56+
* ``getXML()``
57+
* ``send()``
58+
* ``sendHeaders()``
59+
* ``sendBody()``
60+
* ``setCookie($name, $value = '', $expire = '', $domain = '', $path = '/', $prefix = '', $secure = false, $httponly = false, $samesite = null)``
61+
* ``hasCookie(string $name, string $value = null, string $prefix = ''): bool``
62+
* ``getCookie(string $name = null, string $prefix = '')``
63+
* ``deleteCookie(string $name = '', string $domain = '', string $path = '/', string $prefix = '')``
64+
* ``getCookies()``
65+
* ``redirect(string $uri, string $method = 'auto', int $code = null)``
66+
* ``download(string $filename = '', $data = '', bool $setMime = false)``
6767

6868
To facilitate use of this interface these methods have been moved from the framework's ``Response`` into a ``ResponseTrait``
6969
which you may use, and ``DownloadResponse`` now extends ``Response`` directly to ensure maximum compatibility.

0 commit comments

Comments
 (0)