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

Fixed ReflectionClass::getImmediateInterfaces() to only return immediately implemented interfaces #649

Merged
merged 1 commit into from
Jun 9, 2020

Conversation

kukulich
Copy link
Collaborator

@kukulich kukulich commented Jun 8, 2020

Fixes #643

@@ -1493,7 +1493,7 @@ static function (ReflectionClass $interface) : string {
sort($dInterfaces);

self::assertSame(['B'], $cInterfaces);
self::assertSame(['A', 'B', 'C'], $dInterfaces);
self::assertSame(['A', 'C'], $dInterfaces);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Good catch! 💪

Copy link

@smoench smoench left a comment

Choose a reason for hiding this comment

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

LGTM 👍
Thank you @kukulich

Copy link
Member

@Ocramius Ocramius left a comment

Choose a reason for hiding this comment

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

LGTM! Excellent work! \o/

@@ -1493,7 +1493,7 @@ static function (ReflectionClass $interface) : string {
sort($dInterfaces);

self::assertSame(['B'], $cInterfaces);
self::assertSame(['A', 'B', 'C'], $dInterfaces);
self::assertSame(['A', 'C'], $dInterfaces);
Copy link
Member

Choose a reason for hiding this comment

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

Good catch! 💪

@Ocramius Ocramius self-assigned this Jun 9, 2020
@Ocramius Ocramius added the bug label Jun 9, 2020
@Ocramius Ocramius added this to the 4.5.0 milestone Jun 9, 2020
@Ocramius Ocramius changed the title Fixed ReflectionClass::getImmediateInterfaces() Fixed ReflectionClass::getImmediateInterfaces() to only return immediately implemented interfaces Jun 9, 2020
@Ocramius Ocramius merged commit 83bc09a into Roave:master Jun 9, 2020
@kukulich kukulich deleted the interfaces branch June 9, 2020 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ReflectionClass::getImmediateInterfaces() returns parent interfaces
3 participants