{"action":"opened","issue":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/551","labels_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/551/labels{/name}","comments_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/551/comments","events_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/551/events","html_url":"https://github.com/squizlabs/PHP_CodeSniffer/issues/551","id":68685522,"number":551,"title":"PSR2 multiple catch","user":{"login":"fbourigault","id":1116116,"avatar_url":"https://avatars.githubusercontent.com/u/1116116?v=3","gravatar_id":"","url":"https://api.github.com/users/fbourigault","html_url":"https://github.com/fbourigault","followers_url":"https://api.github.com/users/fbourigault/followers","following_url":"https://api.github.com/users/fbourigault/following{/other_user}","gists_url":"https://api.github.com/users/fbourigault/gists{/gist_id}","starred_url":"https://api.github.com/users/fbourigault/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fbourigault/subscriptions","organizations_url":"https://api.github.com/users/fbourigault/orgs","repos_url":"https://api.github.com/users/fbourigault/repos","events_url":"https://api.github.com/users/fbourigault/events{/privacy}","received_events_url":"https://api.github.com/users/fbourigault/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-15T13:37:25Z","updated_at":"2015-04-15T13:37:25Z","closed_at":null,"body":"In PSR2, multiple catches block must be like this:\r\n\r\n```php\r\n<?php\r\ntry {\r\n    // try body\r\n} catch (FirstExceptionType $e) {\r\n    // catch body\r\n} catch (OtherExceptionType $e) {\r\n    // catch body\r\n}\r\n```\r\n\r\nbut `phpcs --standard-PSR2` is ok with the following code:\r\n\r\n```php\r\n<?php\r\ntry {\r\n    // try body\r\n} catch (FirstExceptionType $e) {\r\n    // catch body\r\n}\r\ncatch (OtherExceptionType $e) {\r\n    // catch body\r\n}\r\n```\r\n\r\nBug is present in `2.3.0` and `master`"}}