add flag for stricter string concatenation and interpolationnightly-2021.02.11
commit00f98e1cca3ff34405874229e6a53e15b7503cc8
authorTom Yang <toyang@fb.com>
Thu, 11 Feb 2021 01:34:37 +0000 (10 17:34 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Thu, 11 Feb 2021 01:36:36 +0000 (10 17:36 -0800)
tree801bbefd21f7cfd7b66f56fc35ab2ea2e5086ea8
parent3c8d7d42cdab4c376c1cc86e697592e72c8a9ff3
add flag for stricter string concatenation and interpolation

Summary:
Added the flag "--enable-strict-string-concat-interp". When this flag is set, string interpolation and concatenation operations will require arguments to be type `arraykey`, though this stricter check is implemented in the next diffs in the stack.

This is part of the steps described in [this doc](https://fb.quip.com/3yECAnOtOPT0).

Reviewed By: vassilmladenov

Differential Revision: D26353862

fbshipit-source-id: c89d63076e224e25fa00b0d724561a382ee49e49
hphp/hack/src/hh_single_type_check.ml
hphp/hack/src/options/globalOptions.ml
hphp/hack/src/options/globalOptions.mli
hphp/hack/src/options/typecheckerOptions.ml
hphp/hack/src/oxidized/gen/global_options.rs
hphp/hack/src/oxidized/manual/global_options_impl.rs
hphp/hack/src/oxidized_by_ref/gen/global_options.rs
hphp/hack/src/oxidized_by_ref/manual/global_options_impl.rs
hphp/hack/src/server/serverConfig.ml