Skip to content

Commit

Permalink
Add explicit type to lambda argument; this makes it typecheck with ni…
Browse files Browse the repository at this point in the history
…ghtly hh_client. (#460)
  • Loading branch information
alexeyt authored May 5, 2022
1 parent 36642ed commit 65d5457
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/__Private/XHProf.hack
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ final abstract class XHProf {
public static function disable(): dict<string, self::TResult> {
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<arraykey, mixed> $v) ==> (int) $v['wt'],
);

$inclusive = dict[];
$callers = dict[];
Expand Down

0 comments on commit 65d5457

Please sign in to comment.