From e40fb70fa85650c1c2a892f17edfb90d45d0459e Mon Sep 17 00:00:00 2001 From: Mark Huot Date: Fri, 18 Aug 2023 07:15:39 -0400 Subject: [PATCH] Remove unnecessary type (#19932) Because Web and Console application extend Base application there is no need to specify it. Actually, PHPStan narrows this to _just_ BaseApplication because it is the only consistent type of the three so you lose Web and Console Application type hints. See, https://phpstan.org/r/d21fb99f-c436-480b-99c2-32df35ec07fa --- framework/BaseYii.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/BaseYii.php b/framework/BaseYii.php index 8f76ea5123b..dfa5419cb0a 100644 --- a/framework/BaseYii.php +++ b/framework/BaseYii.php @@ -68,7 +68,7 @@ class BaseYii */ public static $classMap = []; /** - * @var \yii\console\Application|\yii\web\Application|\yii\base\Application the application instance + * @var \yii\console\Application|\yii\web\Application the application instance */ public static $app; /**