refactor: Remove deprecated View::$currentSection (#9403)

* refactor: Remove deprecated `View::$currentSection`

* docs: Update changelog
This commit is contained in:
neznaika0 2025-01-13 07:51:25 +03:00 committed by GitHub
parent 4c16324780
commit b635a1790f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 12 deletions

View File

@ -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 @@ class View implements RendererInterface
*/
public function section(string $name)
{
// Saved to prevent BC.
$this->currentSection = $name;
$this->sectionStack[] = $name;
ob_start();

View File

@ -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