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

Drop PHP < 8.0 #2385

Closed
kylekatarnls opened this issue Jul 8, 2021 · 0 comments · Fixed by #2386
Closed

Drop PHP < 8.0 #2385

kylekatarnls opened this issue Jul 8, 2021 · 0 comments · Fixed by #2386
Assignees
Milestone

Comments

@kylekatarnls
Copy link
Collaborator

Until then, we planned to keep Carbon 3.0 compatible with PHP 7.4. This will finally be dropped too so minimum PHP level of Carbon 3.0 will be PHP 8.0. Reasons leading to this decision are the following:

  • Release will be a bit later than expected (more likely end of year) and so PHP 7.4 will be very close to its end of support date.
  • Symfony 6.0 will require PHP 8.0 and we'll follow the pace.
  • Laravel 9.0 required PHP >= 7.4 until recently, that was one of the reason to keep 7.4 which is no longer relevant.
  • ⬆️ Make CarbonPeriod extend DatePeriod #1752 PHP 8.0 will allow CarbonPeriod to extend DatePeriod which is a great enhancement for the consistency of Carbon main classes suite which are all sub-class of native PHP ones.
  • It will allow to merge 3.x and 4.x branches which mean less maintenance burden.

As always dropping compatibility for the next major release does not mean you should worry if you're on PHP 7.4 or lower. Carbon 2.x will continue to be compatible with PHP >= 7.1.8 and minor fixes and language patches will continue to be released even after 3.0 lives as stable.

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 a pull request may close this issue.

1 participant