Use `stringifyMapKeys` for string typedef
commitd5b53857f2476e5227b752cf32f997f7a85c819c
authorRashmi Makheja <rashmim@meta.com>
Mon, 20 May 2024 23:17:48 +0000 (20 16:17 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Mon, 20 May 2024 23:17:48 +0000 (20 16:17 -0700)
tree5e0b7c9d8f6c74bd66d630a664f4a95927050bf2
parent4bda584ef9b07ed00771886fdb7a1d9a0cfacb55
Use `stringifyMapKeys` for string typedef

Summary:
`stringifyMapKeys` is used to cast `arraykey` to `string`.

`is_string_or_binary()` returns false for typedef. Use the underlying type to check if `stringifyMapKeys` is needed

Reviewed By: prasad223

Differential Revision: D57581021

fbshipit-source-id: 7c4125d4f0d9239b30c467a362e0b07080c920ee
third-party/thrift/src/thrift/compiler/generate/t_hack_generator.cc
third-party/thrift/src/thrift/compiler/test/fixtures/shape_arraykeys/out/hack/gen-hack/module_types.php
third-party/thrift/src/thrift/compiler/test/fixtures/shape_arraykeys/src/module.thrift