Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Argument 1 passed to PHPStan\Analyser\MutatingScope::resolveName() must be an instance of PhpParser\Node\Name #52

Open
lesha724 opened this issue Nov 25, 2022 · 1 comment

Comments

@lesha724
Copy link

lesha724 commented Nov 25, 2022

Hello, I have next error on latest version phpstan:

Internal error: Argument 1 passed to PHPStan\Analyser\MutatingScope::resolveName() must be an instance of PhpParser\Node\Name, instance of PhpParser\Node\Expr\PropertyFetch given, called in \vendor\proget-hq\phpstan-yii2\src\Type\ActiveRecordDynamicStaticMethodReturnTypeExtension.php  on line 51 
@fernando2amigos
Copy link

Hello. Any update on this?

Also facing wrong type params errors all around.

Argument 1 passed to PHPStan\Analyser\MutatingScope::resolveName() must be an instance of PhpParser\Node\Name, instance of PhpParser\Node\Expr\Variable given, called in
     /var/www/vendor/proget-hq/phpstan-yii2/src/Type/ActiveRecordDynamicStaticMethodReturnTypeExtension.php on line 51 while analysing file /var/www/common/components/controllers/BaseController.php

Yii: 2.0.49
PHP: 7.4
PHPStan: 1.10.59
phpstan-yii2: 0.8.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants