{"action":"created","issue":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/500","labels_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/500/labels{/name}","comments_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/500/comments","events_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/500/events","html_url":"https://github.com/squizlabs/PHP_CodeSniffer/issues/500","id":58866113,"number":500,"title":"Functions not supported as values in Squiz ArrayDeclaration sniff","user":{"login":"keyermann","id":1217483,"avatar_url":"https://avatars.githubusercontent.com/u/1217483?v=3","gravatar_id":"","url":"https://api.github.com/users/keyermann","html_url":"https://github.com/keyermann","followers_url":"https://api.github.com/users/keyermann/followers","following_url":"https://api.github.com/users/keyermann/following{/other_user}","gists_url":"https://api.github.com/users/keyermann/gists{/gist_id}","starred_url":"https://api.github.com/users/keyermann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keyermann/subscriptions","organizations_url":"https://api.github.com/users/keyermann/orgs","repos_url":"https://api.github.com/users/keyermann/repos","events_url":"https://api.github.com/users/keyermann/events{/privacy}","received_events_url":"https://api.github.com/users/keyermann/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/labels/Bug","name":"Bug","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-25T08:19:27Z","updated_at":"2015-02-25T09:09:45Z","closed_at":null,"body":"Hi,\r\n\r\nI have a serious problem with Squiz sniffer and fix when I have an array with function.\r\n\r\nExemple : \r\n\r\n```php\r\n<?php\r\n    array(\r\n        'key1' => function($bar) {\r\n            return $bar;\r\n        },\r\n        'key2' => function($foo) {\r\n            return $foo;\r\n        },\r\n    );\r\n```\r\n\r\nResult with Squiz : \r\n\r\n```php\r\n<?php\r\n\r\n    array(\r\n     'key1' => function($bar) {\r\n            ,\r\n            return $bar;\r\n        },\r\n     'key2' => function($foo) {\r\n            ,\r\n            return $foo;\r\n        },\r\n    );\r\n```\r\n\r\nIs there a way to correct it ?\r\n\r\nThank you ! ;)"},"comment":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/comments/75927574","html_url":"https://github.com/squizlabs/PHP_CodeSniffer/issues/500#issuecomment-75927574","issue_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/500","id":75927574,"user":{"login":"gsherwood","id":185976,"avatar_url":"https://avatars.githubusercontent.com/u/185976?v=3","gravatar_id":"","url":"https://api.github.com/users/gsherwood","html_url":"https://github.com/gsherwood","followers_url":"https://api.github.com/users/gsherwood/followers","following_url":"https://api.github.com/users/gsherwood/following{/other_user}","gists_url":"https://api.github.com/users/gsherwood/gists{/gist_id}","starred_url":"https://api.github.com/users/gsherwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsherwood/subscriptions","organizations_url":"https://api.github.com/users/gsherwood/orgs","repos_url":"https://api.github.com/users/gsherwood/repos","events_url":"https://api.github.com/users/gsherwood/events{/privacy}","received_events_url":"https://api.github.com/users/gsherwood/received_events","type":"User","site_admin":false},"created_at":"2015-02-25T09:09:45Z","updated_at":"2015-02-25T09:09:45Z","body":"> I will add an other problem linked :\r\n\r\nPlease add a new issue for this so it can be tracked. I've fixed the original issue you are having with closures inside array values, but this other issue is unrelated to that."}}