feat(types): expose `IsPacked` to help dealing with hashmaps and lists in Go code by alexandre-daubois · Pull Request #1977 · php/frankenphp
Because the API is different depending on if you deal with hash maps or lists, it would be nice to expose a method that returns whether the hashtable is packed.
My use case: I'm getting back to callable support and while writing a custom array_map(), I want to keep indexes if it's not a list. I have to check whether the provided hash table is packed or not.