{"action":"opened","issue":{"url":"https://api.github.com/repos/facebook/hhvm/issues/5762","labels_url":"https://api.github.com/repos/facebook/hhvm/issues/5762/labels{/name}","comments_url":"https://api.github.com/repos/facebook/hhvm/issues/5762/comments","events_url":"https://api.github.com/repos/facebook/hhvm/issues/5762/events","html_url":"https://github.com/facebook/hhvm/issues/5762","id":96234487,"number":5762,"title":"ReflectionException: Parameter is not optional when using strval() on a function with variadics (regression)","user":{"login":"ezzatron","id":100152,"avatar_url":"https://avatars.githubusercontent.com/u/100152?v=3","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":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-21T05:53:51Z","updated_at":"2015-07-21T05:53:51Z","closed_at":null,"body":"Code to reproduce:\r\n\r\n```php\r\necho new ReflectionFunction(function (...$a) {});\r\n```\r\n\r\nResult on HHVM 3.3.1 - 3.6.1:\r\n\r\n```\r\nClosure [ <user> function {closure} ] {\r\n  @@ /in/IWFvU 1 - 1\r\n\r\n  - Parameters [1] {\r\n    Parameter #0 [ <required> $a ]\r\n  }\r\n}\r\n```\r\n\r\nResult on HHVM 3.7.0 - 3.8.0:\r\n\r\n```\r\nFatal error: Uncaught exception 'ReflectionException' with message 'Parameter is not optional' in :\r\nStack trace:\r\n#0 (): ReflectionParameter->getDefaultValue()\r\n#1 (): ReflectionParameter->__toString()\r\n#2 (): ReflectionFunctionAbstract->__toStringHelper()\r\n#3 /in/IWFvU(1): ReflectionFunction->__toString()\r\n#4 {main}\r\n\r\nProcess exited with code 255.\r\n```\r\n\r\n[Results on 3v4l.org](http://3v4l.org/IWFvU)."}}