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
Msgpack supports both maps and arrays for lists of data. When a packing is done from php, a map could be created both with string or integer keys. An msgpack array is created when the php array has only integer keys that are sequential and starting from 0.
Katana has strong types and map keys must be strings, so any integer key in a map will result in error.
Thanks a lot @rybakit, I am busy in other projects now, but this looks great for this and a couple of other types I need to serialize. I'll definitely give it a try.
Msgpack supports both maps and arrays for lists of data. When a packing is done from php, a map could be created both with string or integer keys. An msgpack array is created when the php array has only integer keys that are sequential and starting from 0.
Katana has strong types and map keys must be strings, so any integer key in a map will result in error.
Some solution is needed to prevent those errors.
The library could have some options. https://github.com/rybakit/msgpack.php#type-detection-mode
The text was updated successfully, but these errors were encountered: