{"action":"created","issue":{"url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/issues/1977","repository_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2","labels_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/issues/1977/labels{/name}","comments_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/issues/1977/comments","events_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/issues/1977/events","html_url":"https://github.com/phpDocumentor/phpDocumentor2/issues/1977","id":316547293,"number":1977,"title":"Cannot generate documentation for classes which have functions with return type declarations.","user":{"login":"montypanday","id":30430294,"avatar_url":"https://avatars2.githubusercontent.com/u/30430294?v=4","gravatar_id":"","url":"https://api.github.com/users/montypanday","html_url":"https://github.com/montypanday","followers_url":"https://api.github.com/users/montypanday/followers","following_url":"https://api.github.com/users/montypanday/following{/other_user}","gists_url":"https://api.github.com/users/montypanday/gists{/gist_id}","starred_url":"https://api.github.com/users/montypanday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/montypanday/subscriptions","organizations_url":"https://api.github.com/users/montypanday/orgs","repos_url":"https://api.github.com/users/montypanday/repos","events_url":"https://api.github.com/users/montypanday/events{/privacy}","received_events_url":"https://api.github.com/users/montypanday/received_events","type":"User","site_admin":false},"labels":[{"id":919135595,"url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/labels/needs%20author%20update","name":"needs author update","color":"d93f0b","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-04-22T04:11:50Z","updated_at":"2018-05-01T08:48:14Z","closed_at":null,"author_association":"NONE","body":"<!-- Provide a general summary of the issue in the Title above -->\r\n\r\n## Expected Behavior\r\nShould be able to generate docs for these files.\r\n\r\n\r\n## Actual Behavior\r\nNo documentation generated for file which have a function with return type declared in this way\r\n[](http://php.net/manual/en/functions.returning-values.php#functions.returning-values.type-declaration)\r\n\r\n\r\n## Steps to Reproduce the Problem\r\n\r\n  1.  public function index(JobRepository $jobRepository): **Response**\r\n    {\r\n        return $this->render('job/index.html.twig', ['jobs' => $jobRepository->findAll()]);\r\n    }\r\n\r\n  2.\r\n  3.\r\n\r\n## Your environment\r\n\r\nInclude as many relevant details about the environment you experienced the bug in and how to reproduce it.\r\nSince many issue might only occur on a specific code base it would be very helpfull if you link to your project\r\nor add any code that is involved in to the issue.\r\n\r\n* Version used: 3.0.0-alpha1\r\n* Install method phar\r\n* php version 7.2\r\n* Operating system and version (e.g. Ubuntu 16.04, Windows 7): windows 10\r\n* Link to your project:\r\n* ...\r\n* ...\r\n"},"comment":{"url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/issues/comments/385627353","html_url":"https://github.com/phpDocumentor/phpDocumentor2/issues/1977#issuecomment-385627353","issue_url":"https://api.github.com/repos/phpDocumentor/phpDocumentor2/issues/1977","id":385627353,"user":{"login":"montypanday","id":30430294,"avatar_url":"https://avatars2.githubusercontent.com/u/30430294?v=4","gravatar_id":"","url":"https://api.github.com/users/montypanday","html_url":"https://github.com/montypanday","followers_url":"https://api.github.com/users/montypanday/followers","following_url":"https://api.github.com/users/montypanday/following{/other_user}","gists_url":"https://api.github.com/users/montypanday/gists{/gist_id}","starred_url":"https://api.github.com/users/montypanday/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/montypanday/subscriptions","organizations_url":"https://api.github.com/users/montypanday/orgs","repos_url":"https://api.github.com/users/montypanday/repos","events_url":"https://api.github.com/users/montypanday/events{/privacy}","received_events_url":"https://api.github.com/users/montypanday/received_events","type":"User","site_admin":false},"created_at":"2018-05-01T08:48:14Z","updated_at":"2018-05-01T08:48:14Z","author_association":"NONE","body":"Hi, \r\nYes, i mean functions which return value or null.\r\nIf i remove the ? It can generate the documentation, otherwise it ignores the class.\r\nI tried with a symfony 4 project with php 7.2 and phpDocumentor phar file."}}
{"actor":{"display_login":"montypanday"}}