-
Notifications
You must be signed in to change notification settings - Fork 8
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
Assignment based type inference for class fields #13
Comments
Yes - this is constructor property type inference - it was supported for a couple of years but then with the language server it caused an infinite loop and I had to remove it 👀 |
That is really unfortunate. It's not that I can't live with it, it's just none of my services have type hints :-( Probably with 7.4 that won't be needed? |
Yes, I would put it back it's a a question of time and it's not trivial... |
I understand. |
I'd rather have the refactorings implemented than this. |
It would be really helpful if type is inferred for variables based on assignment. In that case, because a value with a known type is assigned to
$this->arg1
, and because it has no explicit type declaration, its type should be known.Of course
@var
comments should have the highest precedence.The text was updated successfully, but these errors were encountered: