Releases: jungi-php/common
Releases · jungi-php/common
v1.2.0
Added
- Function
array_equals()
that checks if both arrays have the same keys and their values are equal
v1.1.1
Added
- Template type declaration at
Equatable::equals()
. PHPStorm 2022.1 now handles generics types in @method tags, and it's also helpful when using an analysis tool.
- Missing @param tag at
Option::some()
- Missing @param tags in local functions
- Missing @template tags in static methods of
Result
- Missing @template tags in static methods of
Option
v1.1.0
Added
- Function
iterable_search()
that returns the first key where the given value is equal.
v0.3.0
- Add Option::orElseTo()
- Add Result::mapOr()
- Add Result::mapOrElse()
- Add Option::mapOr()
- Add Option::mapOrElse()
v0.2.0
- Make Result variants lowercase
- Make Option variants lowercase
v0.1.1
- Make constructors of Option child types protected
- Make constructors of Result child types protected