Skip to content
This repository has been archived by the owner on Jul 1, 2023. It is now read-only.

Commit

Permalink
Fix parameter type error in json_decode
Browse files Browse the repository at this point in the history
  • Loading branch information
fredemmott committed Feb 9, 2018
1 parent 18955d8 commit d988fcc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/_Private/get_html_entity_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ function get_html_entity_table(): dict<string, string> {
"Expected %s to exist",
$file,
);
$data = \json_decode(\file_get_contents($file), \JSON_FB_HACK_ARRAYS);
$data = \json_decode(
\file_get_contents($file),
/* assoc = */ true,
/* depth = */ 512,
\JSON_FB_HACK_ARRAYS,
);

return Dict\map($data, $x ==> $x['characters']);
}

0 comments on commit d988fcc

Please sign in to comment.