{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/xhp-lib/issues/144","labels_url":"https://api.github.com/repos/facebook/xhp-lib/issues/144/labels{/name}","comments_url":"https://api.github.com/repos/facebook/xhp-lib/issues/144/comments","events_url":"https://api.github.com/repos/facebook/xhp-lib/issues/144/events","html_url":"https://github.com/facebook/xhp-lib/issues/144","id":91850465,"number":144,"title":"The Hack Type Checker is reporting errors.","user":{"login":"JSummerhill","id":7462357,"avatar_url":"https://avatars.githubusercontent.com/u/7462357?v=3","gravatar_id":"","url":"https://api.github.com/users/JSummerhill","html_url":"https://github.com/JSummerhill","followers_url":"https://api.github.com/users/JSummerhill/followers","following_url":"https://api.github.com/users/JSummerhill/following{/other_user}","gists_url":"https://api.github.com/users/JSummerhill/gists{/gist_id}","starred_url":"https://api.github.com/users/JSummerhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JSummerhill/subscriptions","organizations_url":"https://api.github.com/users/JSummerhill/orgs","repos_url":"https://api.github.com/users/JSummerhill/repos","events_url":"https://api.github.com/users/JSummerhill/events{/privacy}","received_events_url":"https://api.github.com/users/JSummerhill/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-29T16:30:20Z","updated_at":"2015-06-29T17:11:58Z","closed_at":null,"body":"So, I recently installed XHP with the latest version of HHVM, and I setup the Hack type checker.  When I run \"hh_client\", I get these errors:\r\n\r\n/var/www/html/json/vendor/facebook/xhp-lib/src/core/ComposableElement.php:504:12,13: Invalid return type (Typing[4110])\r\n  /var/www/html/json/vendor/facebook/xhp-lib/src/core/ComposableElement.php:502:6,10: This is an array (used like a hashtable)\r\n  /var/www/html/json/vendor/facebook/xhp-lib/src/core/ComposableElement.php:504:12,13: It is incompatible with void ($_ is a placeholder variable not meant to be used)\r\n/var/www/html/json/vendor/facebook/xhp-lib/src/core/ComposableElement.php:513:12,13: Invalid return type (Typing[4110])\r\n  /var/www/html/json/vendor/facebook/xhp-lib/src/core/ComposableElement.php:511:51,55: This is an array (used like a hashtable)\r\n  /var/www/html/json/vendor/facebook/xhp-lib/src/core/ComposableElement.php:513:12,13: It is incompatible with void ($_ is a placeholder variable not meant to be used)\r\n/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:50:47,49: Invalid xhp value (Typing[4110])\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:5:5,7: This is an int\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:50:47,49: It is incompatible with a string\r\n/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:58:48,51: Invalid xhp value (Typing[4110])\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:5:5,7: This is an int\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:58:48,51: It is incompatible with a float\r\n/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:66:50,50: Invalid xhp value (Typing[4110])\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:6:5,9: This is a float\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:66:50,50: It is incompatible with an int\r\n/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:74:51,51: Invalid xhp value (Typing[4110])\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:7:5,10: This is a string\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:74:51,51: It is incompatible with an int\r\n/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:82:49,49: Invalid xhp value (Typing[4110])\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:8:5,8: This is a bool\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:82:49,49: It is incompatible with an int\r\n/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:90:48,53: Invalid xhp value (Typing[4110])\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:8:5,8: This is a bool\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:90:48,53: It is incompatible with a string\r\n/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:96:51,51: Invalid xhp value (Typing[4110])\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:7:5,10: This is a string\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:96:51,51: It is incompatible with an int\r\n/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:105:53,53: Invalid xhp value (Typing[4110])\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:7:5,10: This is a string\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:105:53,53: It is incompatible with an int\r\n/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:112:51,51: Invalid xhp value (Typing[4110])\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:7:5,10: This is a string\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesCoercionModeTest.php:112:51,51: It is incompatible with an int\r\n/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:55:17,34: Invalid xhp value (Typing[4110])\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:12:12,17: This is a string\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:55:26,26: It is incompatible with an int\r\n/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:66:42,66: Invalid xhp value (Typing[4110])\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:5:5,10: This is a string\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:66:42,66: It is incompatible with an object of type StringableTestClass\r\n/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:71:42,44: Invalid xhp value (Typing[4110])\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:5:5,10: This is a string\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:71:42,44: It is incompatible with an int\r\n/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:79:42,61: Invalid xhp value (Typing[4110])\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:5:5,10: This is a string\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:79:42,61: It is incompatible with an object of type EmptyTestClass\r\n/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:86:42,69: Invalid xhp value (Typing[4110])\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:5:5,10: This is a string\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:86:42,69: It is incompatible with an object; this class name is unknown to Hack\r\n/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:93:42,42: Invalid xhp value (Typing[4110])\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:5:5,10: This is a string\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:93:42,42: It is incompatible with an array\r\n/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:97:39,43: Invalid xhp value (Typing[4110])\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:7:5,7: This is an int\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:97:39,43: It is incompatible with a string\r\n/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:102:39,42: Invalid xhp value (Typing[4110])\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:7:5,7: This is an int\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:102:39,42: It is incompatible with a float\r\n/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:107:38,43: Invalid xhp value (Typing[4110])\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:7:5,7: This is an int\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:107:38,43: It is incompatible with a string\r\n/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:115:39,58: Invalid xhp value (Typing[4110])\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:7:5,7: This is an int\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:115:39,58: It is incompatible with an object of type EmptyTestClass\r\n/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:122:39,66: Invalid xhp value (Typing[4110])\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:7:5,7: This is an int\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:122:39,66: It is incompatible with an object; this class name is unknown to Hack\r\n/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:129:39,39: Invalid xhp value (Typing[4110])\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:7:5,7: This is an int\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:129:39,39: It is incompatible with an array\r\n/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:136:38,46: Invalid xhp value (Typing[4110])\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:7:5,7: This is an int\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:136:38,46: It is incompatible with a string\r\n/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:140:39,44: Invalid xhp value (Typing[4110])\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:6:5,8: This is a bool\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:140:39,44: It is incompatible with a string\r\n/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:145:39,45: Invalid xhp value (Typing[4110])\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:6:5,8: This is a bool\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:145:39,45: It is incompatible with a string\r\n/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:153:39,45: Invalid xhp value (Typing[4110])\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:6:5,8: This is a bool\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:153:39,45: It is incompatible with a string\r\n/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:161:39,42: Invalid xhp value (Typing[4110])\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:6:5,8: This is a bool\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:161:39,42: It is incompatible with a string\r\n/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:167:39,46: Invalid xhp value (Typing[4110])\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:6:5,8: This is a bool\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:167:39,46: It is incompatible with a string\r\n/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:179:41,43: Invalid xhp value (Typing[4110])\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:11:5,9: This is a float\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:179:41,43: It is incompatible with an int\r\n/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:184:40,44: Invalid xhp value (Typing[4110])\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:11:5,9: This is a float\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:184:40,44: It is incompatible with a string\r\n/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:186:40,45: Invalid xhp value (Typing[4110])\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:11:5,9: This is a float\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:186:40,45: It is incompatible with a string\r\n/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:194:40,49: Invalid xhp value (Typing[4110])\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:11:5,9: This is a float\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:194:40,49: It is incompatible with a string\r\n/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:201:40,48: Invalid xhp value (Typing[4110])\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:11:5,9: This is a float\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:201:40,48: It is incompatible with a string\r\n/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:208:41,60: Invalid xhp value (Typing[4110])\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:8:5,9: This is an array\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:208:41,60: It is incompatible with an object of type EmptyTestClass\r\n/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:215:41,56: Invalid xhp value (Typing[4110])\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:8:5,9: This is an array\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:215:41,56: It is incompatible with an object of type Vector\r\n/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:222:42,61: Invalid xhp value (Typing[4110])\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:9:5,12: This is an object of type stdClass\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:222:42,61: It is incompatible with an object of type EmptyTestClass\r\n/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:229:42,42: Invalid xhp value (Typing[4110])\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:12:5,10: This is an object of type Vector\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:229:42,42: It is incompatible with an array (used like a vector)\r\n/var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:262:35,45: Could not find member :idonotexist in an object of type :test:default-attributes (Typing[4053])\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:262:11,55: This is why I think it is an object of type :test:default-attributes\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/AttributesTest.php:29:7,30: Declaration of :test:default-attributes is here\r\n/var/www/html/json/vendor/facebook/xhp-lib/tests/HackEnumAttributeTest.php:26:41,41: Invalid xhp value (Typing[4110])\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/HackEnumAttributeTest.php:10:5,12: This is an object of type TestEnum\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/HackEnumAttributeTest.php:26:41,41: It is incompatible with an int\r\n/var/www/html/json/vendor/facebook/xhp-lib/tests/HackEnumAttributeTest.php:28:41,41: Invalid xhp value (Typing[4110])\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/HackEnumAttributeTest.php:10:5,12: This is an object of type TestEnum\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/HackEnumAttributeTest.php:28:41,41: It is incompatible with an int\r\n/var/www/html/json/vendor/facebook/xhp-lib/tests/HackEnumAttributeTest.php:36:41,41: Invalid xhp value (Typing[4110])\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/HackEnumAttributeTest.php:10:5,12: This is an object of type TestEnum\r\n  /var/www/html/json/vendor/facebook/xhp-lib/tests/HackEnumAttributeTest.php:36:41,41: It is incompatible with an int\r\n\r\nYou guys might want to look into this.  By the way, I am running Debian 8.1 with HHVM-3.7.2-0."},"comment":{"url":"https://api.github.com/repos/facebook/xhp-lib/issues/comments/116764393","html_url":"https://github.com/facebook/xhp-lib/issues/144#issuecomment-116764393","issue_url":"https://api.github.com/repos/facebook/xhp-lib/issues/144","id":116764393,"user":{"login":"fredemmott","id":360927,"avatar_url":"https://avatars.githubusercontent.com/u/360927?v=3","gravatar_id":"","url":"https://api.github.com/users/fredemmott","html_url":"https://github.com/fredemmott","followers_url":"https://api.github.com/users/fredemmott/followers","following_url":"https://api.github.com/users/fredemmott/following{/other_user}","gists_url":"https://api.github.com/users/fredemmott/gists{/gist_id}","starred_url":"https://api.github.com/users/fredemmott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fredemmott/subscriptions","organizations_url":"https://api.github.com/users/fredemmott/orgs","repos_url":"https://api.github.com/users/fredemmott/repos","events_url":"https://api.github.com/users/fredemmott/events{/privacy}","received_events_url":"https://api.github.com/users/fredemmott/received_events","type":"User","site_admin":false},"created_at":"2015-06-29T17:11:58Z","updated_at":"2015-06-29T17:11:58Z","body":"Same on 2.2.0."}}