{"action":"created","issue":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/685","labels_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/685/labels{/name}","comments_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/685/comments","events_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/685/events","html_url":"https://github.com/squizlabs/PHP_CodeSniffer/pull/685","id":102367946,"number":685,"title":"Allow specified arrays in docblock type hints","user":{"login":"nicwortel","id":1055691,"avatar_url":"https://avatars.githubusercontent.com/u/1055691?v=3","gravatar_id":"","url":"https://api.github.com/users/nicwortel","html_url":"https://github.com/nicwortel","followers_url":"https://api.github.com/users/nicwortel/followers","following_url":"https://api.github.com/users/nicwortel/following{/other_user}","gists_url":"https://api.github.com/users/nicwortel/gists{/gist_id}","starred_url":"https://api.github.com/users/nicwortel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicwortel/subscriptions","organizations_url":"https://api.github.com/users/nicwortel/orgs","repos_url":"https://api.github.com/users/nicwortel/repos","events_url":"https://api.github.com/users/nicwortel/events{/privacy}","received_events_url":"https://api.github.com/users/nicwortel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-21T12:21:00Z","updated_at":"2015-08-21T14:38:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/pulls/685","html_url":"https://github.com/squizlabs/PHP_CodeSniffer/pull/685","diff_url":"https://github.com/squizlabs/PHP_CodeSniffer/pull/685.diff","patch_url":"https://github.com/squizlabs/PHP_CodeSniffer/pull/685.patch"},"body":"Example:\r\n\r\n```php\r\n/**\r\n * @param Item[] $items\r\n */\r\npublic function foo(array $items)\r\n{\r\n    // do something\r\n}\r\n```\r\n\r\nShould be fine but currently returns an error: Expected type hint \"Item[]\"; found \"array\" for $items\r\n\r\nThis fixes #601 and #624 "},"comment":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/comments/133447353","html_url":"https://github.com/squizlabs/PHP_CodeSniffer/pull/685#issuecomment-133447353","issue_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/685","id":133447353,"user":{"login":"nicwortel","id":1055691,"avatar_url":"https://avatars.githubusercontent.com/u/1055691?v=3","gravatar_id":"","url":"https://api.github.com/users/nicwortel","html_url":"https://github.com/nicwortel","followers_url":"https://api.github.com/users/nicwortel/followers","following_url":"https://api.github.com/users/nicwortel/following{/other_user}","gists_url":"https://api.github.com/users/nicwortel/gists{/gist_id}","starred_url":"https://api.github.com/users/nicwortel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicwortel/subscriptions","organizations_url":"https://api.github.com/users/nicwortel/orgs","repos_url":"https://api.github.com/users/nicwortel/repos","events_url":"https://api.github.com/users/nicwortel/events{/privacy}","received_events_url":"https://api.github.com/users/nicwortel/received_events","type":"User","site_admin":false},"created_at":"2015-08-21T14:38:18Z","updated_at":"2015-08-21T14:38:18Z","body":"To be honest, I'm not very familiar with the internals of code sniffer yet. Do you mean other sniffs within the Squiz standard? Or in other standards?"}}