Skip to content

Add AlwaysUsedClassConstantsExtension interface#495

Merged
ondrejmirtes merged 2 commits intophpstan:masterfrom
jdecool:always-used-class-constants-extension
Apr 17, 2021
Merged

Add AlwaysUsedClassConstantsExtension interface#495
ondrejmirtes merged 2 commits intophpstan:masterfrom
jdecool:always-used-class-constants-extension

Conversation

@jdecool
Copy link
Copy Markdown
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
Copy Markdown
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 👍

@ondrejmirtes ondrejmirtes merged commit 927d442 into phpstan:master Apr 17, 2021
@ondrejmirtes
Copy link
Copy Markdown
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

Development

Successfully merging this pull request may close these issues.

Using Bleeding Edge with constants visibility

2 participants