Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
psalm-internal no longer requires internal annotation
cc @bdsl
- Loading branch information
Showing
2 changed files
with
3 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42ad366
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, and thanks for the CC @muglug . I always wondered whether this rule was helpful, and if remember correctly your change may improve compatibility with some other tool(s) that interpret
@internal
differently. Although testing now in the PHPStan playground there's no issue reported even for newing up a class marked with@internal
in an unrelated namespace.The docs need updating for this: https://github.com/vimeo/psalm/blob/42ad366dc8ccaf349cda3f2ae45694f3f662828a/docs/annotating_code/supported_annotations.md#psalm-internal