Skip to content

Commit

Permalink
refactor: Remove deprecated View::$currentSection
Browse files Browse the repository at this point in the history
  • Loading branch information
neznaika0 committed Jan 13, 2025
1 parent 4c16324 commit c4e3bd2
Showing 1 changed file with 0 additions 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

0 comments on commit c4e3bd2

Please sign in to comment.