Skip to content

Unable to narrow down return type of an inherited method using stubs #11007

Closed Answered by ondrejmirtes
iVovolk asked this question in Support
Discussion options

You must be logged in to vote

Method yii\web\Controller::getView() does not actually exist (https://github.com/yiisoft/yii2/blob/master/framework/web/Controller.php) so that's why this stub in PHPStan does not have any effect.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@iVovolk
Comment options

Answer selected by iVovolk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
2 participants