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

Commit

Permalink
Mark callable as a FIXME
Browse files Browse the repository at this point in the history
Since `callable` isn't a valid Hack type, get Hack to ignore it. Allows XHP to be included in `assume_php=false` projects.
  • Loading branch information
simonwelsh committed Sep 30, 2015
1 parent bda5586 commit 60a4141
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/AttributesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ protected function render(): XHPRoot {

class :test:callable-attribute extends :x:element {
attribute
/* HH_FIXME[2049]: callable is an invalid Hack type */
callable foo; // unsupported in 2.0+
protected function render(): XHPRoot {
$x = $this->getAttribute('foo');
Expand Down

0 comments on commit 60a4141

Please sign in to comment.