You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am sure there are other use cases for inline annotations that are occurring over and over again.
We should try to find a way to auto fix that for us if we encounter such cases.
Since this is too complex for tokenizing, we will need a AST based tool here that also is able to modify code (similar to rector) etc.
The text was updated successfully, but these errors were encountered:
So it only works convention based and with a high level of missing things as well as some false positives.
If someone has time to invest into AST based ideas, that would be awesome
Sometimes you need to add those annotations manually:
( in case you cannot or don't want to use ModelAwareTrait and loadModel() call )
And usually also the query results for all():
In order for the IDE/PHPStan/Psalm to know the collection item and autocomplete entity properties etc.
As well as first() calls:
I am sure there are other use cases for inline annotations that are occurring over and over again.
We should try to find a way to auto fix that for us if we encounter such cases.
Since this is too complex for tokenizing, we will need a AST based tool here that also is able to modify code (similar to rector) etc.
The text was updated successfully, but these errors were encountered: