{"action":"opened","issue":{"url":"https://api.github.com/repos/symfony/symfony/issues/24560","repository_url":"https://api.github.com/repos/symfony/symfony","labels_url":"https://api.github.com/repos/symfony/symfony/issues/24560/labels{/name}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/24560/comments","events_url":"https://api.github.com/repos/symfony/symfony/issues/24560/events","html_url":"https://github.com/symfony/symfony/issues/24560","id":265495656,"number":24560,"title":"[Form] Return type incosistency","user":{"login":"vudaltsov","id":2552865,"avatar_url":"https://avatars2.githubusercontent.com/u/2552865?v=4","gravatar_id":"","url":"https://api.github.com/users/vudaltsov","html_url":"https://github.com/vudaltsov","followers_url":"https://api.github.com/users/vudaltsov/followers","following_url":"https://api.github.com/users/vudaltsov/following{/other_user}","gists_url":"https://api.github.com/users/vudaltsov/gists{/gist_id}","starred_url":"https://api.github.com/users/vudaltsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vudaltsov/subscriptions","organizations_url":"https://api.github.com/users/vudaltsov/orgs","repos_url":"https://api.github.com/users/vudaltsov/repos","events_url":"https://api.github.com/users/vudaltsov/events{/privacy}","received_events_url":"https://api.github.com/users/vudaltsov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-14T14:37:09Z","updated_at":"2017-10-14T14:37:09Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"| Q                | A\r\n| ---------------- | -----\r\n| Bug report?      | yes\r\n| Feature request? | no\r\n| BC Break report? | no\r\n| RFC?             | no\r\n| Symfony version  | 3\r\n\r\nIn [FormInterface::getPropertyPath()](https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Form/FormInterface.php#L176) the return type is not nullable.\r\n\r\nBut its implementation in [Form::getPropertyPath()](https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Form/Form.php#L215) actually returns null. This costed me a `Call to a member function getElements() on null` since I was relying at IDE autocompletion."}}
{"actor":{"display_login":"vudaltsov"}}