-
-
Notifications
You must be signed in to change notification settings - Fork 505
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
Convert @psalm-*
annotations to generic or @phpstan-*
annotation
#2685
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a few instances of phpstan-return
and phpstan-param
that we could replace with the non-prefixed variants. Essentially, anytime we use a type defined using phpstan-type
we need to use a phpstan prefix, for all other types we can skip the prefix. I'll let you decide whether you want to do this in this pull request or in a separate one.
As for the aggregation builder types, I believe the issue is that we have duplicate type declarations for Stage
and Pipeline
, which is responsible for the circular reference issues we've encountered before. We might want to revisit those as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM #yolo
Summary
@psalm-*
to@phpstan-*
non-empty-string
,non-empty-array
are supported by in PHPStorm.=
in custom type definition$
prefixed key in array-shape need quotes