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(); 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