Skip to content
This repository was archived by the owner on Dec 1, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add explicit type to lambda argument; this makes it typecheck with ni…
…ghtly hh_client.
  • Loading branch information
alexeyt authored May 5, 2022
commit 929b9682c305c967e01bf5980cdcc29e669516a5
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