Releases: spatie/opening-hours
Releases · spatie/opening-hours
2.3.0: Fix overflow calculation
TimeRange no longer return true on containsTime for times overflowing next day
Overflow is now calculated at the day level (OpeningHoursForDay)
New methods:
OpeningHoursForDay::isOpenAtNight
TimeRange::overflowsNextDay
2.2.1: Fix overflow with simple ranges
Fix #111 overflow with simple ranges and add tests
2.2.0: Allow opening hours overflowing on the next day
Allow opening hours overflowing on the next day by passing 'overflow' => true
option in array definition
2.1.2: Set precise time bounds
Fix #98 Set precise time bounds
2.1.1: Handle hours/data in any order
Fix #95 Handle hours/data in any order
2.1.0: Handle consecutive ranges
2.1.0-beta.1: Handle consecutive ranges
2.0.0
- Added support for immutable dates
- Allowed to add meta-data to global/exceptions config, days config, ranges settings via
setData()
andgetData()
- Allowed dynamic opening hours settings
- Added
TimeRange::fromArray()
andTimeRange::fromDefinition()
(to support array of hours+data or string[] or string) - Added
setFilters()
andgetFilters()
⚠ Breaking changes:
nextOpen()
andnextClose()
return type changed forDateTimeInterface
as it can now returnDateTimeImmutable
tootoDateTime()
changed both input type and return type forDateTimeInterface
as it can now take and returnDateTimeImmutable
too
2.0.0-beta.1
- Added support for immutable dates
- Allowed to add meta-data to global/exceptions config, days config, ranges settings via
setData()
andgetData()
- Allowed dynamic opening hours settings
- Added
TimeRange::fromArray()
andTimeRange::fromDefinition()
(to support array of hours+data or string[] or string) - Added
setFilters()
andgetFilters()
⚠ Breaking changes:
nextOpen()
andnextClose()
return type changed forDateTimeInterface
as it can now returnDateTimeImmutable
tootoDateTime()
changed both input type and return type forDateTimeInterface
as it can now take and returnDateTimeImmutable
too