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 AlwaysUsedClassConstantsExtension interface #495

Merged
merged 2 commits into from
Apr 17, 2021
Merged

Add AlwaysUsedClassConstantsExtension interface #495

merged 2 commits into from
Apr 17, 2021

Conversation

jdecool
Copy link
Contributor

@jdecool jdecool commented Apr 15, 2021

This PR should fix phpstan/phpstan#4859

As discussed there is no mechanism like ReadWritePropertiesExtension but for class constants.

This PR introduce an AlwaysUsedClassConstantsExtension to fix this.

@jdecool jdecool marked this pull request as ready for review April 15, 2021 20:49
Copy link
Member

@ondrejmirtes ondrejmirtes left a comment

Choose a reason for hiding this comment

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

Otherwise 👍

conf/config.neon Outdated Show resolved Hide resolved
@ondrejmirtes ondrejmirtes merged commit 927d442 into phpstan:master Apr 17, 2021
@ondrejmirtes
Copy link
Member

Thank you!

@jdecool jdecool deleted the always-used-class-constants-extension branch April 17, 2021 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants