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

Commit

Permalink
array -> v/darray typehints
Browse files Browse the repository at this point in the history
  • Loading branch information
jjergus committed Jul 29, 2020
1 parent ddbd7d7 commit 44a2597
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/builders/FactParseScanner.hack
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ use Facebook\AutoloadMap\__Private\TypeAssert;

/** Create an autoload map from a directory using `ext_factparse`. */
final class FactParseScanner implements Builder {
const type TFacts = array<string, shape(
'types' => array<shape(
const type TFacts = darray<string, shape(
'types' => varray<shape(
'name' => string,
)>,
'constants' => array<string>,
'functions' => array<string>,
'typeAliases' => array<string>,
'constants' => varray<string>,
'functions' => varray<string>,
'typeAliases' => varray<string>,
)>;

private static function untypedToShape(mixed $data): self::TFacts {
Expand Down

0 comments on commit 44a2597

Please sign in to comment.