{"action":"opened","issue":{"url":"https://api.github.com/repos/hanneskod/classtools/issues/10","repository_url":"https://api.github.com/repos/hanneskod/classtools","labels_url":"https://api.github.com/repos/hanneskod/classtools/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/hanneskod/classtools/issues/10/comments","events_url":"https://api.github.com/repos/hanneskod/classtools/issues/10/events","html_url":"https://github.com/hanneskod/classtools/issues/10","id":194588709,"number":10,"title":"Classes which contain methods with PHP 7.1 nullable return types trigger error","user":{"login":"lougreenwood","id":12051736,"avatar_url":"https://avatars.githubusercontent.com/u/12051736?v=3","gravatar_id":"","url":"https://api.github.com/users/lougreenwood","html_url":"https://github.com/lougreenwood","followers_url":"https://api.github.com/users/lougreenwood/followers","following_url":"https://api.github.com/users/lougreenwood/following{/other_user}","gists_url":"https://api.github.com/users/lougreenwood/gists{/gist_id}","starred_url":"https://api.github.com/users/lougreenwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lougreenwood/subscriptions","organizations_url":"https://api.github.com/users/lougreenwood/orgs","repos_url":"https://api.github.com/users/lougreenwood/repos","events_url":"https://api.github.com/users/lougreenwood/events{/privacy}","received_events_url":"https://api.github.com/users/lougreenwood/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-09T12:47:58Z","updated_at":"2016-12-09T12:47:58Z","closed_at":null,"body":"A number of my class methods have been converted to PHP 7.1 nullable return types.\r\n\r\nhttps://wiki.php.net/rfc/nullable_types\r\n\r\nIt seems that any class which contains a method which implements nullable return types triggers an error and the class isn't included in the classmap.\r\n\r\nHere's an example class which causes this bug:\r\n```\r\npublic static function someMethod( string $some_param ) : ?string {\r\n\treturn null;\r\n}\r\n```\r\n\r\nThis gives me an error that looks like this:\r\n`Array ( [0] => Syntax error, unexpected '?' on line 10 in /path/to/my/class.php )`"}}
{"actor":{"display_login":"lougreenwood"}}