-
Notifications
You must be signed in to change notification settings - Fork 668
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
Add a way to indicate that the list of @property
/@method
annotations is comprehensive?
#302
Labels
Comments
This is a great idea, spent a bunch of time writing a plugin to do the exact same thing. |
I went with |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
E.g. by adding
/** @psalm-forbid-undeclared-magic-properties */
,/** @psalm-forbid-undeclared-magic-methods */
to the class's docblock.Code may have __get() and __set() defined, but intended for use to implement only a few magic properties.
So, if a property that isn't in that list is fetched/set, it'd be nice to warn about that.
Something similar was done in Phan
Example:
The text was updated successfully, but these errors were encountered: