{"action":"created","issue":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/1150","repository_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer","labels_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/1150/labels{/name}","comments_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/1150/comments","events_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/1150/events","html_url":"https://github.com/squizlabs/PHP_CodeSniffer/issues/1150","id":175788606,"number":1150,"title":"Squiz.Strings.EchoedStrings does not properly fix bracketed statements","user":{"login":"u01jmg3","id":1266205,"avatar_url":"https://avatars.githubusercontent.com/u/1266205?v=3","gravatar_id":"","url":"https://api.github.com/users/u01jmg3","html_url":"https://github.com/u01jmg3","followers_url":"https://api.github.com/users/u01jmg3/followers","following_url":"https://api.github.com/users/u01jmg3/following{/other_user}","gists_url":"https://api.github.com/users/u01jmg3/gists{/gist_id}","starred_url":"https://api.github.com/users/u01jmg3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/u01jmg3/subscriptions","organizations_url":"https://api.github.com/users/u01jmg3/orgs","repos_url":"https://api.github.com/users/u01jmg3/repos","events_url":"https://api.github.com/users/u01jmg3/events{/privacy}","received_events_url":"https://api.github.com/users/u01jmg3/received_events","type":"User","site_admin":false},"labels":[{"id":130757492,"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/labels/Bug","name":"Bug","color":"e11d21","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-08T15:41:56Z","updated_at":"2016-11-13T23:00:48Z","closed_at":"2016-09-12T23:26:23Z","body":"Using the following rules and PHP, PHPCBF makes an error during correction.\n\n``` xml\n<rule ref=\"Squiz.Strings.EchoedStrings\" />\n<rule ref=\"Squiz.WhiteSpace.SemicolonSpacing\" />\n```\n\n``` php\necho($y) ;\n\n// becomes...\n\necho $y);\n```\n## \n\nModifying [`EchoedStringsSniff.php#L67`](https://github.com/squizlabs/PHP_CodeSniffer/blob/e11f25393c3e5795ff87f2ccb2c156c63d6a13b3/CodeSniffer/Standards/Squiz/Sniffs/Strings/EchoedStringsSniff.php#L67) and including `T_WHITESPACE` solves the problem.\n\n``` php\n// with code extended\n\necho $y;\n```\n"},"comment":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/comments/260219681","html_url":"https://github.com/squizlabs/PHP_CodeSniffer/issues/1150#issuecomment-260219681","issue_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/1150","id":260219681,"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":"2016-11-13T23:00:48Z","updated_at":"2016-11-13T23:00:48Z","body":"> Will this be included in v3.0.1?\r\n\r\n3.0.1 is not the next 3.x release (3.0.0 isn't out yet), but it will be in both the next 2.x and 3.x releases."}}
{"actor":{"display_login":"gsherwood"}}