-
Notifications
You must be signed in to change notification settings - Fork 360
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
Package Scope - Support @internal annotation to raise an issue if a method, etc. is used in a different namespace #353
Labels
enhancement
This improves the quality of Phan's analysis of a codebase
Comments
👍 |
+1 |
👍 In addition it'd be nice to have "package scope" with @internal annotation not only for methods, but also for classes. |
morria
added
the
enhancement
This improves the quality of Phan's analysis of a codebase
label
Oct 17, 2016
Closed
TysonAndre
changed the title
Package Scope
Package Scope - Support @internal annotation to raise an issue if a method, etc. is used in a different namespace
Apr 11, 2017
This was referenced Apr 11, 2017
There's a pull request open for comments here: #656 |
Does anyone here who uses any PHP IDEs have any comments on what kinds of expectations there are out in the wild about how
|
This feature was merged onto master via a396c27 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey,
Is the there possibility to add
package scope
like the java one to the static analysis?I know, that PHP lack of this feature, but this is huge problem in my opinion.
What I was thinking of is usage of
@internal
docblock.The description about
@internal
docblock goes like this:Whenever the method is marked in docblock as @internal it should be used
only within the namespace it exists
in, otherwise phan shouldraise an error
.PHP code example:
The text was updated successfully, but these errors were encountered: