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

PHP 8.1 | File::findImplementedInterfaceNames(): add support for enums implementing interfaces #3578

Conversation

jrfnl
Copy link
Contributor

@jrfnl jrfnl commented Apr 1, 2022

An enum declaration can implement one or more interfaces.

This commit updates the File::findImplementedInterfaceNames() method to allow it to find the interfaces implemented by an enum as well.

Includes unit tests.

…s implementing interfaces

An `enum` declaration can implement one or more interfaces.

This commit updates the `File::findImplementedInterfaceNames()` method to allow it to find the interfaces implemented by an `enum` as well.

Includes unit tests.
@gsherwood gsherwood added this to Idea Bank in PHPCS v3 Development via automation Apr 18, 2022
@gsherwood gsherwood added this to the 3.7.0 milestone Apr 18, 2022
@gsherwood gsherwood merged commit 8c778e8 into squizlabs:master Apr 18, 2022
PHPCS v3 Development automation moved this from Idea Bank to Ready for Release Apr 18, 2022
@gsherwood
Copy link
Member

Thanks

@jrfnl jrfnl deleted the feature/file-getimplementedinterfacenames-add-enum-support branch April 18, 2022 01:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
PHPCS v3 Development
Ready for Release
Development

Successfully merging this pull request may close these issues.

None yet

2 participants