marc-mabe / php-enum

Simple and fast implementation of enumerations with native PHP
BSD 3-Clause "New" or "Revised" License
464 stars 36 forks source link

EnumSet::setBinaryBitset*(): throw exception on out-of-range bits set #73

Closed marc-mabe closed 7 years ago

marc-mabe commented 8 years ago

Throw an OutOfRangeException or InvalidArgumentException in case of the given bitset has out of range bits set instead of truncating.