v2.2.0 #116
ericsizemore
announced in
Announcements
v2.2.0
#116
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
[2.2.0] - 2025-01-10
Important
Initially, in the previous
2.1.0
release, several functions were deprecated (seeDeprecated
under2.1.0
here).After much thought on the direction I want this library to move in, I am reversing my decision to deprecate the Array and Temperature functions mentioned.
Added
Dates::formatDifferenceOutput()
a private function to handle formatting the output forDates::timeDifference()
Dates::INTERVAL_UNITS
constant.$includeBcZones
toDates::timezoneInfo()
andDates::validTimezone()
Psalm
andRectorPHP
as dev-dependencies.Changed
Arrays::flatten()
,Arrays::mapDeep()
, and all the temperature related functions inConversions
are no longer deprecated.Image
class. Still a work in progress; working toward no 'codeCoverageIgnore'.Dates::timeDifference()
logic was changed and a new parameter$extendedOutput
added.false
(default), it returns the same output as usual.true
, it formats the output with available non-zeroDateInterval
units. For example: 2 days 2 hours 20 minutes old.Dates::timeDifference()
output no longer uses '(s)'. Will add 's' if greater than one.Arrays
class has gone through a bit of a refactor:Arrays::mapDeep()
updated to avoid circular references when dealing with objects.mapDeep()
as well.Arrays
class for psalm/phpstan templates/generics.Conversion::haversineDistance()
method.Full Changelog: v2.1.0...v2.2.0
This discussion was created from the release v2.2.0.
Beta Was this translation helpful? Give feedback.
All reactions