From 026459569c24288f045a6f8e38efb7d197671437 Mon Sep 17 00:00:00 2001 From: Shaunak Kishore Date: Thu, 16 Jul 2020 10:03:48 -0700 Subject: [PATCH] Fix resolution error message Summary: I changed the condition here for HAM, but missed the error message. I don't believe this error can be triggered by any bytecode hackc generates. Reviewed By: dneiter Differential Revision: D22572574 fbshipit-source-id: 6432e9f71311899a4c78060ecc7556ec903da13f --- hphp/runtime/base/type-structure-helpers-defs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hphp/runtime/base/type-structure-helpers-defs.h b/hphp/runtime/base/type-structure-helpers-defs.h index ee52e9838e4..c6a4949cad9 100644 --- a/hphp/runtime/base/type-structure-helpers-defs.h +++ b/hphp/runtime/base/type-structure-helpers-defs.h @@ -157,7 +157,7 @@ ALWAYS_INLINE const TypeStructure::Kind get_ts_kind(const ArrayData* ts) { ALWAYS_INLINE bool isValidTSType(TypedValue c, bool error) { if (!tvIsHAMSafeDArray(c)) { - if (error) raise_error("Type structure must be a dict"); + if (error) raise_error("Type structure must be a darray"); return false; } return true; -- 2.11.4.GIT