- Numeric
BinaryFlagsAPIs now acceptintvalues only. - Passing
floatvalues to numeric mask/flag methods now raisesTypeErrorforstrict_types=1callers. - Non-strict callers should still cast or validate external values before calling the API because PHP scalar coercion can convert
floattointat the call boundary. - The numeric iterator and JSON serialization contracts are now documented as
int-based.
Bits::BIT_64.- The v2.x float-normalization/deprecation path in
Traits\InteractsWithNumericFlags.
Bits::BIT_64 was removed because PHP numbers for bitwise flags are signed. The 64th bit is the sign bit, so it cannot be used reliably as a normal flag.
Using integer-compatible bits avoids these issues.