{"action":"created","issue":{"url":"https://api.github.com/repos/phpDocumentor/Reflection/issues/81","repository_url":"https://api.github.com/repos/phpDocumentor/Reflection","labels_url":"https://api.github.com/repos/phpDocumentor/Reflection/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/phpDocumentor/Reflection/issues/81/comments","events_url":"https://api.github.com/repos/phpDocumentor/Reflection/issues/81/events","html_url":"https://github.com/phpDocumentor/Reflection/issues/81","id":108032249,"number":81,"title":"Parameter type hint ignored","user":{"login":"donquixote","id":150032,"avatar_url":"https://avatars0.githubusercontent.com/u/150032?v=4","gravatar_id":"","url":"https://api.github.com/users/donquixote","html_url":"https://github.com/donquixote","followers_url":"https://api.github.com/users/donquixote/followers","following_url":"https://api.github.com/users/donquixote/following{/other_user}","gists_url":"https://api.github.com/users/donquixote/gists{/gist_id}","starred_url":"https://api.github.com/users/donquixote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donquixote/subscriptions","organizations_url":"https://api.github.com/users/donquixote/orgs","repos_url":"https://api.github.com/users/donquixote/repos","events_url":"https://api.github.com/users/donquixote/events{/privacy}","received_events_url":"https://api.github.com/users/donquixote/received_events","type":"User","site_admin":false},"labels":[{"id":20475613,"url":"https://api.github.com/repos/phpDocumentor/Reflection/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2015-09-24T00:16:53Z","updated_at":"2017-08-10T12:32:40Z","closed_at":null,"body":"``` php\nclass C {\n  function foo(MyArgInterface $x) {\n  }\n}\n```\n\nHere it seems that phpDocumentor does not detect the \"MyArgInterface\" argument type.\nnikic's php-parser does correctly detect the type, but then here in \\phpDocumentor\\Reflection\\Php\\Factory\\Argument::create():\n\n```\n    return new ArgumentDescriptor($object->name, $default, $object->byRef, $object->variadic);\n```\n\nThis should be changed to\n\n```\n    $argDescriptor = new ArgumentDescriptor($object->name, $default, $object->byRef, $object->variadic);\n    if (!empty($object->type)) {\n        $argDescriptor->addType((string)$object->type);\n    }\n    return $argDescriptor;\n```\n\nSo it adds the type.\n\nNot sure what other consequences this would have, so I am just proposing this for discussion.\n"},"comment":{"url":"https://api.github.com/repos/phpDocumentor/Reflection/issues/comments/321537815","html_url":"https://github.com/phpDocumentor/Reflection/issues/81#issuecomment-321537815","issue_url":"https://api.github.com/repos/phpDocumentor/Reflection/issues/81","id":321537815,"user":{"login":"jaapio","id":1060433,"avatar_url":"https://avatars0.githubusercontent.com/u/1060433?v=4","gravatar_id":"","url":"https://api.github.com/users/jaapio","html_url":"https://github.com/jaapio","followers_url":"https://api.github.com/users/jaapio/followers","following_url":"https://api.github.com/users/jaapio/following{/other_user}","gists_url":"https://api.github.com/users/jaapio/gists{/gist_id}","starred_url":"https://api.github.com/users/jaapio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaapio/subscriptions","organizations_url":"https://api.github.com/users/jaapio/orgs","repos_url":"https://api.github.com/users/jaapio/repos","events_url":"https://api.github.com/users/jaapio/events{/privacy}","received_events_url":"https://api.github.com/users/jaapio/received_events","type":"User","site_admin":false},"created_at":"2017-08-10T12:32:40Z","updated_at":"2017-08-10T12:32:40Z","body":"That would be awesome! Thanks"}}
{"actor":{"display_login":"jaapio"}}