{"action":"closed","issue":{"url":"https://api.github.com/repos/facebook/hhvm/issues/8003","repository_url":"https://api.github.com/repos/facebook/hhvm","labels_url":"https://api.github.com/repos/facebook/hhvm/issues/8003/labels{/name}","comments_url":"https://api.github.com/repos/facebook/hhvm/issues/8003/comments","events_url":"https://api.github.com/repos/facebook/hhvm/issues/8003/events","html_url":"https://github.com/facebook/hhvm/issues/8003","id":258491981,"number":8003,"title":"HHVM 3.21 in PHP 7 mode reports itself as PHP 7.1, but doesn't support the iterable pseudo-type","user":{"login":"ezzatron","id":100152,"avatar_url":"https://avatars2.githubusercontent.com/u/100152?v=4","gravatar_id":"","url":"https://api.github.com/users/ezzatron","html_url":"https://github.com/ezzatron","followers_url":"https://api.github.com/users/ezzatron/followers","following_url":"https://api.github.com/users/ezzatron/following{/other_user}","gists_url":"https://api.github.com/users/ezzatron/gists{/gist_id}","starred_url":"https://api.github.com/users/ezzatron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezzatron/subscriptions","organizations_url":"https://api.github.com/users/ezzatron/orgs","repos_url":"https://api.github.com/users/ezzatron/repos","events_url":"https://api.github.com/users/ezzatron/events{/privacy}","received_events_url":"https://api.github.com/users/ezzatron/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-09-18T14:05:05Z","updated_at":"2017-09-18T23:14:41Z","closed_at":"2017-09-18T23:14:41Z","author_association":"NONE","body":"### HHVM Version\r\n\r\n3.21\r\n\r\n### Standalone code, or other way to reproduce the problem\r\n\r\nFrom https://3v4l.org/lBSQB\r\n\r\n```php\r\n<?php\r\n\r\nvar_dump(PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION);\r\n\r\n$r = new ReflectionFunction(function (iterable $a) {});\r\n$p = $r->getParameters()[0];\r\nvar_dump(strval($p->getType()), $p->getClass());\r\n```\r\n\r\n### Expected result\r\n\r\n```\r\nstring(3) \"7.1\"\r\nstring(8) \"iterable\"\r\nNULL\r\n```\r\n\r\n### Actual result\r\n\r\n```\r\nstring(3) \"7.1\"\r\n\r\nFatal error: Uncaught exception 'ReflectionException' with message 'Class iterable does not exist' in /in/lBSQB:7\r\nStack trace:\r\n#0 (): ReflectionClass->__construct()\r\n#1 /in/lBSQB(7): ReflectionParameter->getClass()\r\n#2 {main}\r\n```"}}
{"actor":{"display_login":"ezzatron"}}