{"action":"created","issue":{"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/1418","labels_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/1418/labels{/name}","comments_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/1418/comments","events_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/1418/events","html_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/1418","id":108464281,"number":1418,"title":"Lambda in array issue","user":{"login":"FranBar","id":6294077,"avatar_url":"https://avatars.githubusercontent.com/u/6294077?v=3","gravatar_id":"","url":"https://api.github.com/users/FranBar","html_url":"https://github.com/FranBar","followers_url":"https://api.github.com/users/FranBar/followers","following_url":"https://api.github.com/users/FranBar/following{/other_user}","gists_url":"https://api.github.com/users/FranBar/gists{/gist_id}","starred_url":"https://api.github.com/users/FranBar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FranBar/subscriptions","organizations_url":"https://api.github.com/users/FranBar/orgs","repos_url":"https://api.github.com/users/FranBar/repos","events_url":"https://api.github.com/users/FranBar/events{/privacy}","received_events_url":"https://api.github.com/users/FranBar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/labels/to%20verify","name":"to verify","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-26T13:38:45Z","updated_at":"2015-09-27T07:55:43Z","closed_at":null,"body":" fix  --level=psr2\r\n<pre>\r\n$array = array(\r\n    'closure' => function ($param1, $param2) {\r\n        return;\r\n    }\r\n);\r\n</pre>\r\nActual result of the above code:\r\n<pre>\r\n$array = array(\r\n    'closure' => function($param1,\r\n    $param2) {\r\n        return;\r\n    },\r\n);\r\n</pre>\r\nExpected result:\r\n<pre>\r\n$array = array(\r\n    'closure' => function ($param1, $param2) {\r\n        return;\r\n    }\r\n);\r\n</pre>\r\nI think the commas are detected as part of the array rather than the function arguments"},"comment":{"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/comments/143527957","html_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/1418#issuecomment-143527957","issue_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/1418","id":143527957,"user":{"login":"GrahamCampbell","id":2829600,"avatar_url":"https://avatars.githubusercontent.com/u/2829600?v=3","gravatar_id":"","url":"https://api.github.com/users/GrahamCampbell","html_url":"https://github.com/GrahamCampbell","followers_url":"https://api.github.com/users/GrahamCampbell/followers","following_url":"https://api.github.com/users/GrahamCampbell/following{/other_user}","gists_url":"https://api.github.com/users/GrahamCampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/GrahamCampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrahamCampbell/subscriptions","organizations_url":"https://api.github.com/users/GrahamCampbell/orgs","repos_url":"https://api.github.com/users/GrahamCampbell/repos","events_url":"https://api.github.com/users/GrahamCampbell/events{/privacy}","received_events_url":"https://api.github.com/users/GrahamCampbell/received_events","type":"User","site_admin":false},"created_at":"2015-09-27T07:55:43Z","updated_at":"2015-09-27T07:55:43Z","body":"What line endings did you have?"}}