{"action":"created","issue":{"url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/issues/17","labels_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/issues/17/comments","events_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/issues/17/events","html_url":"https://github.com/object-calisthenics/phpcs-calisthenics-rules/issues/17","id":54875781,"number":17,"title":"More specifcly about types on docBlocks","user":{"login":"malukenho","id":3275172,"avatar_url":"https://avatars.githubusercontent.com/u/3275172?v=3","gravatar_id":"","url":"https://api.github.com/users/malukenho","html_url":"https://github.com/malukenho","followers_url":"https://api.github.com/users/malukenho/followers","following_url":"https://api.github.com/users/malukenho/following{/other_user}","gists_url":"https://api.github.com/users/malukenho/gists{/gist_id}","starred_url":"https://api.github.com/users/malukenho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malukenho/subscriptions","organizations_url":"https://api.github.com/users/malukenho/orgs","repos_url":"https://api.github.com/users/malukenho/repos","events_url":"https://api.github.com/users/malukenho/events{/privacy}","received_events_url":"https://api.github.com/users/malukenho/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-20T12:10:41Z","updated_at":"2015-06-26T10:28:38Z","closed_at":null,"body":"I want to be more specific about types in my docBlock, for example:\r\n\r\n```php\r\n/**\r\n * @param string[] $bar\r\n */\r\npublic function Foo(array $bar) {\r\n     // ...\r\n}\r\n```\r\n\r\nBut it's actually raise a error on CS validation.\r\n\r\n`Expected type hint \"string[]\"; found \"array\" for $bat at position 1`"},"comment":{"url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/issues/comments/115634066","html_url":"https://github.com/object-calisthenics/phpcs-calisthenics-rules/issues/17#issuecomment-115634066","issue_url":"https://api.github.com/repos/object-calisthenics/phpcs-calisthenics-rules/issues/17","id":115634066,"user":{"login":"Ocramius","id":154256,"avatar_url":"https://avatars.githubusercontent.com/u/154256?v=3","gravatar_id":"","url":"https://api.github.com/users/Ocramius","html_url":"https://github.com/Ocramius","followers_url":"https://api.github.com/users/Ocramius/followers","following_url":"https://api.github.com/users/Ocramius/following{/other_user}","gists_url":"https://api.github.com/users/Ocramius/gists{/gist_id}","starred_url":"https://api.github.com/users/Ocramius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ocramius/subscriptions","organizations_url":"https://api.github.com/users/Ocramius/orgs","repos_url":"https://api.github.com/users/Ocramius/repos","events_url":"https://api.github.com/users/Ocramius/events{/privacy}","received_events_url":"https://api.github.com/users/Ocramius/received_events","type":"User","site_admin":false},"created_at":"2015-06-26T10:28:37Z","updated_at":"2015-06-26T10:28:37Z","body":"I use `string[]` reliably, and it's correctly detected by PHPDocumentor as well.\r\nShould just be allowed, as it's the most common way to annotate arrays."}}