-
Notifications
You must be signed in to change notification settings - Fork 99
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
Repository type not matched when set to a property #21
Comments
This is currently not possible because there's no way how to write a |
Well, phpstan/phpstan uses DI, so in theory extensions can extend a LOT more stuff, than is officially documented, i.e. That being said, extending and decorating core phpstan services should probably not be encouraged. |
That's nice to know! I don't consider TypeNodeResolver as a public API with any BC incentives so I'd rather have an official extension point, but this can be used meanwhile... |
Edit: this comment is actually invalid, PHPStan is not validating the method calls as I expected. |
This is now supported, but you have to write |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
In a nutshell, this PHP class:
Produces:
Replacing the line by
$domain = $this->getRepository(PowerDNSDomain::class)->findOneBy(['name' => $nameCanonical]);
directly "solve" the issue.It seems the property assignation of repositories is not handled by the extension.
The text was updated successfully, but these errors were encountered: