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

RFC: Deprecate date_sunrise and date_sunset constants #12978

Merged
merged 6 commits into from
Aug 4, 2024

Conversation

jorgsowa
Copy link
Contributor

@jorgsowa jorgsowa commented Dec 19, 2023

Because the PR previously tackling the problem of deprecation of constants related to the functions date_sunrise and date_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?

@Girgias
Copy link
Member

Girgias commented Dec 20, 2023

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 :)

@jorgsowa jorgsowa changed the title Deprecate date_sunrise and date_sunset constants and config Deprecate date_sunrise and date_sunset constants Dec 20, 2023
@jorgsowa
Copy link
Contributor Author

Great. I added it to the list, and removed from this PR part about ini settings as those are already deprecated in older RFC.

@TimWolla TimWolla added the RFC label Dec 23, 2023
@TimWolla TimWolla changed the title Deprecate date_sunrise and date_sunset constants RFC: Deprecate date_sunrise and date_sunset constants Dec 23, 2023
@derickr
Copy link
Member

derickr commented Mar 18, 2024

What's the reason for deprecating this?

@jorgsowa
Copy link
Contributor Author

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.

@jorgsowa jorgsowa force-pushed the deprecate_date_sunrise_constants branch from a26c561 to bee7d42 Compare March 19, 2024 07:13
Copy link
Member

@kocsismate kocsismate left a 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

Copy link
Member

@derickr derickr left a 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.

Copy link
Member

@Girgias Girgias left a 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

UPGRADING Outdated Show resolved Hide resolved
@TimWolla TimWolla merged commit b9fef52 into php:master Aug 4, 2024
10 checks passed
@jorgsowa jorgsowa deleted the deprecate_date_sunrise_constants branch August 7, 2024 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants