thephpleague / period

PHP's time range API

Home Page:https://period.thephpleague.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for PHP8.2

nyamsprod opened this issue · comments

Feature Request

Q A
New Feature yes
BC Break no

Proposal

PHP8.2 introduces DatePeriod::INCLUDE_END_DATE constant. Previously there was only DatePeriod::EXCLUDE_START_DATE . We should make it possible to setup the correct behaviour when period creates a DatePeriod

Currently Period v5 has the following enum InitialDatePresence with two state Included and Excluded.

We should either:

  • Drop its support and rely Fully on boundaries;
  • Add a new Enum that supports all possible iteration;
  • Ugrade the current Enum with new values.