From c4e3bd2fad1f1ad10b65fb5a5ce76e89886549c6 Mon Sep 17 00:00:00 2001 From: neznaika0 Date: Sun, 12 Jan 2025 12:30:37 +0300 Subject: [PATCH 1/2] refactor: Remove deprecated `View::$currentSection` --- system/View/View.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/system/View/View.php b/system/View/View.php index 47ea46daca7f..6a282096ccb4 100644 --- a/system/View/View.php +++ b/system/View/View.php @@ -124,16 +124,6 @@ class View implements RendererInterface */ protected $sections = []; - /** - * The name of the current section being rendered, - * if any. - * - * @var string|null - * - * @deprecated - */ - protected $currentSection; - /** * The name of the current section being rendered, * if any. @@ -420,8 +410,6 @@ public function extend(string $layout) */ public function section(string $name) { - // Saved to prevent BC. - $this->currentSection = $name; $this->sectionStack[] = $name; ob_start(); From 07e5c97bec920a8471c032a030e20ff4ef2b04b6 Mon Sep 17 00:00:00 2001 From: neznaika0 Date: Sun, 12 Jan 2025 23:43:15 +0300 Subject: [PATCH 2/2] docs: Update changelog --- user_guide_src/source/changelogs/v4.6.0.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/user_guide_src/source/changelogs/v4.6.0.rst b/user_guide_src/source/changelogs/v4.6.0.rst index 844633fd543d..d35749753443 100644 --- a/user_guide_src/source/changelogs/v4.6.0.rst +++ b/user_guide_src/source/changelogs/v4.6.0.rst @@ -200,6 +200,7 @@ Removed Deprecated Items ``clean_path()`` function instead. - **Router:** The deprecated ``CodeIgniter\Router\Exceptions\RedirectException`` has been removed. Use ``CodeIgniter\HTTP\Exceptions\RedirectException`` instead. - **Constants:** The deprecated constants ``EVENT_PRIORITY_*`` in has been removed. Use the class constants ``CodeIgniter\Events\Events::PRIORITY_LOW``, ``CodeIgniter\Events\Events::PRIORITY_NORMAL`` and ``CodeIgniter\Events\Events::PRIORITY_HIGH`` instead. +- **View:** The deprecated property ``CodeIgniter\View\View::$currentSection`` has been removed. ************ Enhancements