From 02ef942c5335266903947565e093671984da63e0 Mon Sep 17 00:00:00 2001 From: Janne Date: Sat, 19 Oct 2024 20:48:31 +0300 Subject: [PATCH] Added missing underscore in front of private property #20267 --- framework/base/Widget.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/framework/base/Widget.php b/framework/base/Widget.php index 1267643df62..b1340188449 100644 --- a/framework/base/Widget.php +++ b/framework/base/Widget.php @@ -63,7 +63,7 @@ class Widget extends Component implements ViewContextInterface /** * @var string[] used widget classes that have been resolved to their actual class name. */ - private static $resolvedClasses = []; + private static $_resolvedClasses = []; /** * Initializes the object. @@ -92,7 +92,7 @@ public static function begin($config = []) /* @var $widget Widget */ $widget = Yii::createObject($config); self::$stack[] = $widget; - self::$resolvedClasses[get_called_class()] = get_class($widget); + self::$_resolvedClasses[get_called_class()] = get_class($widget); return $widget; } @@ -109,7 +109,7 @@ public static function end() if (!empty(self::$stack)) { $widget = array_pop(self::$stack); - $calledClass = self::$resolvedClasses[get_called_class()] ?? get_called_class(); + $calledClass = self::$_resolvedClasses[get_called_class()] ?? get_called_class(); if (get_class($widget) === $calledClass) { /* @var $widget Widget */