-
Notifications
You must be signed in to change notification settings - Fork 7.9k
RFC: Deprecate date_sunrise and date_sunset constants #12978
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
RFC: Deprecate date_sunrise and date_sunset constants #12978
Conversation
Yes I do think it makes sense to add this to the 8.4 mass deprecation RFC, feel free to edit that RFC directly by adding a new section :) |
Great. I added it to the list, and removed from this PR part about ini settings as those are already deprecated in older RFC. |
What's the reason for deprecating this? |
These constants are exclusively used by the date_sunset() and date_sunrise() which are already deprecated, so after removal, there will be no reasonable use for those constants. |
a26c561
to
bee7d42
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM once the RFC passes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also LGTM, once the RFC passes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nit, LGTM otherwise
Because the PR previously tackling the problem of deprecation of constants related to the functions
date_sunrise
anddate_sunset
was abandoned I want to tackle this problem again.This PR deprecates the constants used exclusively by functions date_sunset() and date_sunrise():
Do you think it could be included in the PHP 8.4 Deprecations RFC?