You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A new Limits class has been added, which contains constants for the bounds of int8, int16, int32, int64, and their unsigned variants.
BinaryStream has the following changes:
buffer and offset fields are now protected.
reset() method has been removed (create a new BinaryStream instead).
setBuffer() method has been removed (create a new BinaryStream instead).
get() no longer accepts true for the length. To get all the bytes left in the buffer, use getRemaining() instead.
BIG_ENDIAN and LITTLE_ENDIAN constants have been removed.
All methods which return void now have native void typehints.
The global constant ENDIANNESS has been removed. It's no longer needed for anything thanks to the introduction of non-machine-byte-order-dependent pack() codes for floats in PHP 7.2.