Skip to content

Instantly share code, notes, and snippets.

@dave1010
Last active August 29, 2015 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dave1010/8784348 to your computer and use it in GitHub Desktop.
Save dave1010/8784348 to your computer and use it in GitHub Desktop.
$ cat hh.php
<?hh class Foo { public function __construct(private int $num) : void { } }
$ hhvm --version
HipHop VM 2.4.0 (rel)
Compiler: tags/HHVM-2.4.0-0-gc82fcd8e6199c500454b1a8b930a876ef2c1522b
Repo schema: a536a1d1567b1fb5d722c0349a3296d4e8589f96
$ hhvm hh.php
HipHop Fatal error: Parameters modifiers not allowed on methods in /home/base/hh.php on line 1
@stuartcarnie
Copy link

Change it to:

<?hh class Foo { public function __construct(private int $num) : void { } }

@dave1010
Copy link
Author

dave1010 commented Feb 3, 2014

Fixed :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment