Skip to content
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

Merged
merged 10 commits into from
Feb 15, 2024

Conversation

jongardiner
Copy link
Contributor

Also, pretty print when outputting to a TTY.

…or ClassMethod and ReflectedClassMethod so that we can inspect method attributes tests.

Also, change analysis rate display to only run in an interactive TTY.
@jongardiner jongardiner requested a review from a team as a code owner February 7, 2024 01:01
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) {
Copy link
Collaborator

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?

Copy link
Contributor Author

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.

@jongardiner jongardiner merged commit 7e50e0e into master Feb 15, 2024
2 checks passed
@jongardiner jongardiner deleted the jgardiner/attribute-abstraction branch March 7, 2024 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants