Skip to content

Commit b635a17

Browse files
authored
refactor: Remove deprecated View::$currentSection (#9403)
* refactor: Remove deprecated `View::$currentSection` * docs: Update changelog
1 parent 4c16324 commit b635a17

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

system/View/View.php

-12
Original file line numberDiff line numberDiff line change
@@ -124,16 +124,6 @@ class View implements RendererInterface
124124
*/
125125
protected $sections = [];
126126

127-
/**
128-
* The name of the current section being rendered,
129-
* if any.
130-
*
131-
* @var string|null
132-
*
133-
* @deprecated
134-
*/
135-
protected $currentSection;
136-
137127
/**
138128
* The name of the current section being rendered,
139129
* if any.
@@ -420,8 +410,6 @@ public function extend(string $layout)
420410
*/
421411
public function section(string $name)
422412
{
423-
// Saved to prevent BC.
424-
$this->currentSection = $name;
425413
$this->sectionStack[] = $name;
426414

427415
ob_start();

user_guide_src/source/changelogs/v4.6.0.rst

+1
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ Removed Deprecated Items
200200
``clean_path()`` function instead.
201201
- **Router:** The deprecated ``CodeIgniter\Router\Exceptions\RedirectException`` has been removed. Use ``CodeIgniter\HTTP\Exceptions\RedirectException`` instead.
202202
- **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.
203+
- **View:** The deprecated property ``CodeIgniter\View\View::$currentSection`` has been removed.
203204

204205
************
205206
Enhancements

0 commit comments

Comments
 (0)