-
Notifications
You must be signed in to change notification settings - Fork 2
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 attributes to ClassMethod abstraction #93
Conversation
…or ClassMethod and ReflectedClassMethod so that we can inspect method attributes tests. Also, change analysis rate display to only run in an interactive TTY.
… into jgardiner/attribute-abstraction
…ty function for filtering of list of potential child classes by their ancestor.
Support for "true", "false", "null" as declared return types. 8.2 Support for typed constants 8.3 Checks for ?null as an illegal type (nullable null)
Support for "true", "false", "null" as declared return types. 8.2 Support for typed constants 8.3 Checks for ?null as an illegal type (nullable null)
Support for "true", "false", "null" as declared return types. 8.2 Support for typed constants 8.3 Checks for ?null as an illegal type (nullable null)
} | ||
|
||
function run($fileName, Node $node, ClassLike $inside = null, Scope $scope = null) { | ||
if ($node instanceof ClassConst) { |
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.
Wouldn't the node here always be an instance of ClassConst?
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.
Yes. I use the if to cast them so that static analyzers will know what we do about the type.
Also, pretty print when outputting to a TTY.