diff --git a/system/Cookie/CloneableCookieInterface.php b/system/Cookie/CloneableCookieInterface.php index 508c1359970e..93f6031e2010 100644 --- a/system/Cookie/CloneableCookieInterface.php +++ b/system/Cookie/CloneableCookieInterface.php @@ -60,6 +60,8 @@ public function withExpired(); * Creates a new Cookie that will virtually never expire from the browser. * * @return static + * + * @deprecated See https://github.com/codeigniter4/CodeIgniter4/pull/6413 */ public function withNeverExpiring(); diff --git a/system/Cookie/Cookie.php b/system/Cookie/Cookie.php index 22c01a7daa3c..b153d8fe6e0f 100644 --- a/system/Cookie/Cookie.php +++ b/system/Cookie/Cookie.php @@ -460,7 +460,7 @@ public function withExpired() } /** - * {@inheritDoc} + * @deprecated See https://github.com/codeigniter4/CodeIgniter4/pull/6413 */ public function withNeverExpiring() { diff --git a/user_guide_src/source/changelogs/v4.2.6.rst b/user_guide_src/source/changelogs/v4.2.6.rst index d1a467297660..4607984cf2ab 100644 --- a/user_guide_src/source/changelogs/v4.2.6.rst +++ b/user_guide_src/source/changelogs/v4.2.6.rst @@ -27,7 +27,7 @@ none. Deprecations ************ -none. +- :php:meth:`CodeIgniter\\Cookie\\Cookie::withNeverExpiring()` is deprecated. Bugs Fixed ********** diff --git a/user_guide_src/source/libraries/cookies.rst b/user_guide_src/source/libraries/cookies.rst index 1964eb4cf144..6cfc37327106 100644 --- a/user_guide_src/source/libraries/cookies.rst +++ b/user_guide_src/source/libraries/cookies.rst @@ -223,7 +223,7 @@ In runtime, you can manually supply a new default using the ``Cookie::setDefault Class Reference *************** -.. php:namespace:: CodeIgniter\HTTP\Cookie +.. php:namespace:: CodeIgniter\Cookie .. php:class:: Cookie @@ -326,6 +326,8 @@ Class Reference .. php:method:: withNeverExpiring() + .. important:: This method is deprecated. + :param string $name: :rtype: ``Cookie`` :returns: new ``Cookie`` instance