Skip to content

Commit

Permalink
Remove unnecessary type (#19932)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
markhuot committed Aug 18, 2023
1 parent 73902f0 commit e40fb70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/BaseYii.php
Expand Up @@ -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;
/**
Expand Down

0 comments on commit e40fb70

Please sign in to comment.