Skip to content

Instantly share code, notes, and snippets.

@JoelMarcey
Created April 22, 2014 16:35
Show Gist options
  • Save JoelMarcey/11185876 to your computer and use it in GitHub Desktop.
Save JoelMarcey/11185876 to your computer and use it in GitHub Desktop.
fromArray doesn't exist; use constructor instead.
<?hh
function main(): void {
$x = array(1, 2, 3);
$y = new ImmMap($x);
var_dump($y);
}
main();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment