Avoid plain (return) array typehints in a bunch of extensions
commitb62b73f0f5dedf0688da2f8b7404454521cdcdb8
authorKevin Viratyosin <viratyosin@fb.com>
Thu, 28 May 2020 23:58:12 +0000 (28 16:58 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Fri, 29 May 2020 00:05:22 +0000 (28 17:05 -0700)
tree23a63baa4db0bbd2de683a21c694a7192375c787
parentb5387b57c85922583e0b1dc04b61e3df1bb65829
Avoid plain (return) array typehints in a bunch of extensions

Summary:
I used a crappy regex to look for plain array typehints to fix.

Some of these were already fixed in C++ and just needed the Hack header updated. Others required C++ fixes.

I also updated any param typehints that were nearby.

Reviewed By: hgoldstein

Differential Revision: D21732294

fbshipit-source-id: 2b99f1ee27ff128582be65d925b7656d93818a90
37 files changed:
hphp/runtime/ext/debugger/ext_debugger.cpp
hphp/runtime/ext/debugger/ext_debugger.php
hphp/runtime/ext/fribidi/ext_fribidi.cpp
hphp/runtime/ext/fribidi/ext_fribidi.php
hphp/runtime/ext/gmp/ext_gmp.php
hphp/runtime/ext/icu/ext_icu.cpp
hphp/runtime/ext/icu/ext_icu.php
hphp/runtime/ext/icu/ext_icu_calendar.cpp
hphp/runtime/ext/icu/ext_icu_calendar.php
hphp/runtime/ext/icu/ext_icu_rsrc_bundle.cpp
hphp/runtime/ext/icu/ext_icu_rsrc_bundle.php
hphp/runtime/ext/icu/ext_icu_transliterator.cpp
hphp/runtime/ext/icu/ext_icu_transliterator.php
hphp/runtime/ext/icu/ext_icu_uchar.cpp
hphp/runtime/ext/icu/ext_icu_uchar.php
hphp/runtime/ext/mbstring/ext_mbstring.cpp
hphp/runtime/ext/mbstring/ext_mbstring.php
hphp/runtime/ext/mcrouter/ext_mcrouter.cpp
hphp/runtime/ext/mcrouter/ext_mcrouter.php
hphp/runtime/ext/mcrypt/ext_mcrypt.cpp
hphp/runtime/ext/mcrypt/ext_mcrypt.php
hphp/runtime/ext/memcache/ext_memcache.cpp
hphp/runtime/ext/memcache/ext_memcache.php
hphp/runtime/ext/memcached/ext_memcached.cpp
hphp/runtime/ext/memcached/ext_memcached.php
hphp/runtime/ext/pgsql/ext_pgsql.php
hphp/runtime/ext/pgsql/pgsql.cpp
hphp/runtime/ext/reflection/ext_reflection_hni.php
hphp/runtime/ext/simplexml/ext_simplexml.php
hphp/runtime/ext/sodium/ext_sodium.cpp
hphp/runtime/ext/sodium/ext_sodium.php
hphp/runtime/ext/std/ext_std_options.php
hphp/runtime/ext/std/ext_std_process.php
hphp/runtime/ext/string/ext_string.cpp
hphp/runtime/ext/string/ext_string.php
hphp/runtime/ext/url/ext_url.cpp
hphp/runtime/ext/url/ext_url.php