{"action":"created","issue":{"url":"https://api.github.com/repos/slevomat/coding-standard/issues/126","repository_url":"https://api.github.com/repos/slevomat/coding-standard","labels_url":"https://api.github.com/repos/slevomat/coding-standard/issues/126/labels{/name}","comments_url":"https://api.github.com/repos/slevomat/coding-standard/issues/126/comments","events_url":"https://api.github.com/repos/slevomat/coding-standard/issues/126/events","html_url":"https://github.com/slevomat/coding-standard/issues/126","id":222164806,"number":126,"title":"TypeHintDeclarationSniff incorrectly reports about missing typehint when parameter docBlock contains union of two types, one is traversable and the second one does not specify the traversable type","user":{"login":"maryo","id":900769,"avatar_url":"https://avatars0.githubusercontent.com/u/900769?v=3","gravatar_id":"","url":"https://api.github.com/users/maryo","html_url":"https://github.com/maryo","followers_url":"https://api.github.com/users/maryo/followers","following_url":"https://api.github.com/users/maryo/following{/other_user}","gists_url":"https://api.github.com/users/maryo/gists{/gist_id}","starred_url":"https://api.github.com/users/maryo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maryo/subscriptions","organizations_url":"https://api.github.com/users/maryo/orgs","repos_url":"https://api.github.com/users/maryo/repos","events_url":"https://api.github.com/users/maryo/events{/privacy}","received_events_url":"https://api.github.com/users/maryo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-04-17T16:14:47Z","updated_at":"2017-04-18T07:58:45Z","closed_at":"2017-04-18T07:58:45Z","body":"```\r\nFOUND 3 ERRORS AFFECTING 3 LINES\r\n----------------------------------------------------------------------\r\n 273 | ERROR | [x] Method \\Vanio\\Stdlib\\Uri::withQuery() does not\r\n     |       |     have parameter type hint for its parameter $query\r\n     |       |     but it should be possible to add it based on\r\n     |       |     @param annotation \"string|array\".\r\n```\r\n\r\nI think it should report only when the annotation is something like \"array|string[]\". Am I right?\r\nI guess you would probably typed it like `string|mixed[]` and then it would be probably quite OK but I don't use this notation for mixed arrays. I've excluded \"MissingTraversableParameterTypeHintSpecification, MissingTraversablePropertyTypeHintSpecification and MissingTraversableReturnTypeHintSpecification\" but still consider this sniff very handy.\r\n\r\nBTW thanks for open sourcing this repo.\r\n"},"comment":{"url":"https://api.github.com/repos/slevomat/coding-standard/issues/comments/294720482","html_url":"https://github.com/slevomat/coding-standard/issues/126#issuecomment-294720482","issue_url":"https://api.github.com/repos/slevomat/coding-standard/issues/126","id":294720482,"user":{"login":"kukulich","id":260445,"avatar_url":"https://avatars2.githubusercontent.com/u/260445?v=3","gravatar_id":"","url":"https://api.github.com/users/kukulich","html_url":"https://github.com/kukulich","followers_url":"https://api.github.com/users/kukulich/followers","following_url":"https://api.github.com/users/kukulich/following{/other_user}","gists_url":"https://api.github.com/users/kukulich/gists{/gist_id}","starred_url":"https://api.github.com/users/kukulich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kukulich/subscriptions","organizations_url":"https://api.github.com/users/kukulich/orgs","repos_url":"https://api.github.com/users/kukulich/repos","events_url":"https://api.github.com/users/kukulich/events{/privacy}","received_events_url":"https://api.github.com/users/kukulich/received_events","type":"User","site_admin":false},"created_at":"2017-04-18T07:58:45Z","updated_at":"2017-04-18T07:58:45Z","body":"Fixed in 2bcf4016c91d307e65e9ce8f855a23262e66c622"}}
{"actor":{"display_login":"kukulich"}}