{"action":"created","issue":{"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/1983","repository_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer","labels_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/1983/labels{/name}","comments_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/1983/comments","events_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/1983/events","html_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/1983","id":159773422,"number":1983,"title":"PHPDoc order, the Symfony way","user":{"login":"Soullivaneuh","id":1698357,"avatar_url":"https://avatars.githubusercontent.com/u/1698357?v=3","gravatar_id":"","url":"https://api.github.com/users/Soullivaneuh","html_url":"https://github.com/Soullivaneuh","followers_url":"https://api.github.com/users/Soullivaneuh/followers","following_url":"https://api.github.com/users/Soullivaneuh/following{/other_user}","gists_url":"https://api.github.com/users/Soullivaneuh/gists{/gist_id}","starred_url":"https://api.github.com/users/Soullivaneuh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Soullivaneuh/subscriptions","organizations_url":"https://api.github.com/users/Soullivaneuh/orgs","repos_url":"https://api.github.com/users/Soullivaneuh/repos","events_url":"https://api.github.com/users/Soullivaneuh/events{/privacy}","received_events_url":"https://api.github.com/users/Soullivaneuh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-11T13:26:11Z","updated_at":"2016-06-11T17:35:16Z","closed_at":null,"body":"Currently, the `phpdoc_order` sorts the annotations like this:\r\n\r\n```php\r\n/**\r\n * Transforms the input given as first argument.\r\n *\r\n * @param bool|string $dummy   Some argument description\r\n * @param array       $options An options collection to be used within the transformation\r\n *\r\n * @throws \\RuntimeException When an invalid option is provided\r\n *\r\n * @return string|null The transformed input\r\n */\r\nprivate function transformText($dummy, array $options = array())\r\n```\r\n\r\nBut, according to the [Symfony Coding Standard sample](http://symfony.com/doc/current/contributing/code/standards.html), this should be like this:\r\n\r\n```php\r\n/**\r\n * Transforms the input given as first argument.\r\n *\r\n * @param bool|string $dummy   Some argument description\r\n * @param array       $options An options collection to be used within the transformation\r\n *\r\n * @return string|null The transformed input\r\n *\r\n * @throws \\RuntimeException When an invalid option is provided\r\n */\r\nprivate function transformText($dummy, array $options = array())\r\n```\r\n\r\nIn a nutshell, `@throws` should be after `@return`, not before.\r\n\r\nIt would be great to have another fixer to be integrated directly to the Symfony group.\r\n\r\nWhat do you think?\r\n\r\ncc @GrahamCampbell (seems you made this fixer)"},"comment":{"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/comments/225378767","html_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/1983#issuecomment-225378767","issue_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/1983","id":225378767,"user":{"login":"SpacePossum","id":10462973,"avatar_url":"https://avatars.githubusercontent.com/u/10462973?v=3","gravatar_id":"","url":"https://api.github.com/users/SpacePossum","html_url":"https://github.com/SpacePossum","followers_url":"https://api.github.com/users/SpacePossum/followers","following_url":"https://api.github.com/users/SpacePossum/following{/other_user}","gists_url":"https://api.github.com/users/SpacePossum/gists{/gist_id}","starred_url":"https://api.github.com/users/SpacePossum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SpacePossum/subscriptions","organizations_url":"https://api.github.com/users/SpacePossum/orgs","repos_url":"https://api.github.com/users/SpacePossum/repos","events_url":"https://api.github.com/users/SpacePossum/events{/privacy}","received_events_url":"https://api.github.com/users/SpacePossum/received_events","type":"User","site_admin":false},"created_at":"2016-06-11T17:35:16Z","updated_at":"2016-06-11T17:35:16Z","body":":+1: "}}
{"actor":{"display_login":"SpacePossum"}}