v2.3.0-rc1
Pre-release
Pre-release
First Release Candidate of 2.3.0.
New:
- #63: EnumSet: support for Little- and Big-Endian binary bitsets
- Added EnumSet::getBinaryBitsetLe() : string
- Added EnumSet::setBinaryBitsetLe(string $bitset)
- Added EnumSet::getBinaryBitsetBe() : string
- Added EnumSet::setBinaryBitsetBe(string $bitset)
- #64: EnumSet: added isEqual(), isSubset() and isSuperset()
- Added EnumSet::isEqual(EnumSet $other) : bool
- Added EnumSet::isSubset(EnumSet $other) : bool
- Added EnumSet::isSuperset(EnumSet $other) : bool
- #66: EnumSet: added methods union(), intersect(), diff() and symDiff()
- Added EnumSet::union(EnumSet ...$others) : EnumSet
- Added EnumSet::intersect(EnumSet ...$others) : EnumSet
- Added EnumSet::diff(EnumSet ...$others) : EnumSet
- Added EnumSet::symDiff(EnumSet ...$others) : EnumSet
- #65: EnumSet: added getEnumerators(), getNames() and getValues()
- Added EnumSet::getEnumerators() : Enum[]
- Added EnumSet::getValues() : mixed[]
- Added EnumSet::getNames() : string[]
- #78: Added static Enum::getValues(), Enum::getNames() and Enum::getOrdinals()
- Added Enum::getValues() : mixed[]
- Added Enum::getNames() : string[]
- Added Enum::getOrdinals() : int[]
- #80: refactored Enum::getBy* to Enum::by*
- Renamed Enum::getByName() -> Enum::byName()
- Renamed Enum::getByOrdinal() -> Enum::byName()
- Added Enum::byValue()
- #59: handle class constant visibility added in PHP-7.1
- #67: optimized EnumSet::count() by 30% to 240%
- #75: optimized EnumSet by using EnumSet properties directly instead of getter methods
##Fixed:
- #71: EnumSet::setBinaryBitset*(): out-of-range bits of last byte not truncated
- #77: Missing additional check on Enum::is() to return TRUE in some circumstances
Deprecations:
- #63 :
EnumSet::getBitset() : string - #63:
EnumSet::setBitset(string $bitset) - #79:
Enum::clear() - #80:
Enum::getByName() - #80:
Enum::getByOrdinal()
BC-breaks:
- none