From 65d54577488abe021142ca9caf87e5290b7d609e Mon Sep 17 00:00:00 2001 From: Alexey Toptygin Date: Thu, 5 May 2022 15:14:49 -0700 Subject: [PATCH] Add explicit type to lambda argument; this makes it typecheck with nightly hh_client. (#460) --- src/__Private/XHProf.hack | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/__Private/XHProf.hack b/src/__Private/XHProf.hack index bcef9177f..efc3976ca 100644 --- a/src/__Private/XHProf.hack +++ b/src/__Private/XHProf.hack @@ -29,7 +29,10 @@ final abstract class XHProf { public static function disable(): dict { invariant(self::$enabled === true, "Can't disable twice"); self::$enabled = false; - $raw = Dict\map(\xhprof_disable(), $v ==> (int) $v['wt']); + $raw = Dict\map( + \xhprof_disable(), + (KeyedContainer $v) ==> (int) $v['wt'], + ); $inclusive = dict[]; $callers = dict[];