Skip to content

Add support for deprecating internal constants #5072

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

Closed
wants to merge 1 commit into from

Conversation

nikic
Copy link
Member

@nikic nikic commented Jan 10, 2020

Internal constants can be marked as CONST_DEPRECATED, in which accessing them will throw a deprecation warning.

We've needed this a couple of times in the past, but never bothered to implement it...

cc @cmb69

@Girgias
Copy link
Member

Girgias commented Jan 10, 2020

Does this also cover internal class constants? Asking because I'm not seeing a test for this.

@nikic
Copy link
Member Author

nikic commented Jan 10, 2020

@Girgias Nope, this currently only supports global constants.

cmb69 added a commit to cmb69/php-src that referenced this pull request Jan 16, 2020
Let's wait for PR php#5072, and act accordingly then.
@php-pulls php-pulls closed this in 9ec1ee5 Jan 17, 2020
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.

2 participants