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

Simplify PublicClassMethodCollector #65

Merged
merged 1 commit into from
Jun 26, 2023
Merged

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Jun 26, 2023

No description provided.

}

if ($this->publicClassMethodMatcher->shouldSkipClassMethod($node)) {
return null;
}

// only if the class has no parents/implementers, to avoid class method required by contracts
$classReflection = $scope->getClassReflection();
if (! $classReflection instanceof ClassReflection) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved this check up, so we can simplify the other related code

@staabm staabm marked this pull request as ready for review June 26, 2023 15:51
@TomasVotruba
Copy link
Owner

Thank you 👍

@TomasVotruba TomasVotruba merged commit 2172ea4 into TomasVotruba:main Jun 26, 2023
8 checks passed
@staabm staabm deleted the simple branch June 26, 2023 19:10
This pull request was closed.
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