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

FamilyRelationsAnalyzer: final classes can't have children #4913

Merged
merged 1 commit into from
Sep 5, 2023

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Sep 5, 2023

No description provided.

@staabm staabm marked this pull request as ready for review September 5, 2023 09:20
@staabm staabm requested a review from TomasVotruba as a code owner September 5, 2023 09:20
@@ -28,6 +28,10 @@ public function __construct(
*/
public function getChildrenOfClassReflection(ClassReflection $desiredClassReflection): array
{
if ($desiredClassReflection->isFinalByKeyword()) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

we don't use isFinal() because that would also allow @final phpdoc, which we don't want

@staabm
Copy link
Contributor Author

staabm commented Sep 5, 2023

the failling test doesn't look related

@samsonasik
Copy link
Member

Github seems down right now https://www.githubstatus.com/

@staabm
Copy link
Contributor Author

staabm commented Sep 5, 2023

seems green now

@TomasVotruba TomasVotruba merged commit 8c5cfaf into rectorphp:main Sep 5, 2023
@TomasVotruba
Copy link
Member

Looks good, thank you 👏

@staabm staabm deleted the fast branch September 5, 2023 11:46
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.

3 participants