Releases: ramsey/collection
Releases · ramsey/collection
2.0.0
Added
- Add support for
CollectionInterface::reduce()
(#87) - All exceptions now implement a base
CollectionException
interface - Introduce
Sort
enum - Support
column()
,sort()
, andwhere()
on non-object collection types
Changed
- Minimum PHP version supported is 8.1
- Every method now has parameter and return type hints; if extending classes or implementing interfaces, you may need to change method signatures to upgrade
- The second parameter of
CollectionInterface::sort()
now uses the newSort
enum instead of a string - Audit all template annotations and clean up Psalm and PHPStan types for correctness; if using static analysis in projects, this may require changes to your type annotations
ArrayInterface
no longer extends\Serializable
, and theserialize()
andunserialize()
methods have been removed fromAbstractArray
; however,AbstractArray
still supports serialization through implementing__serialize()
and__unserialize()
1.3.0
1.2.2
1.2.1
1.2.0
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
Fixed
- Fixed
AbstractCollection::diff()
,AbstractCollection::intersect()
and
AbstractCollection::merge()
when used with Generic collections. - Fixed
AbstractCollection::diff()
andAbstractCollection::intersect()
returning inconsistent results when used on collections containing objects. - Removed warning about deprecated dependency when running
composer install