Skip to content

Commit

Permalink
refactor: Remove deprecated View::$currentSection (#9403)
Browse files Browse the repository at this point in the history
* refactor: Remove deprecated `View::$currentSection`

* docs: Update changelog
  • Loading branch information
neznaika0 authored Jan 13, 2025
1 parent 4c16324 commit b635a17
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
12 changes: 0 additions & 12 deletions system/View/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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();
Expand Down
1 change: 1 addition & 0 deletions user_guide_src/source/changelogs/v4.6.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b635a17

Please sign in to comment.