{"action":"created","issue":{"url":"https://api.github.com/repos/slevomat/coding-standard/issues/535","repository_url":"https://api.github.com/repos/slevomat/coding-standard","labels_url":"https://api.github.com/repos/slevomat/coding-standard/issues/535/labels{/name}","comments_url":"https://api.github.com/repos/slevomat/coding-standard/issues/535/comments","events_url":"https://api.github.com/repos/slevomat/coding-standard/issues/535/events","html_url":"https://github.com/slevomat/coding-standard/issues/535","id":373080400,"node_id":"MDU6SXNzdWUzNzMwODA0MDA=","number":535,"title":"Out of memory errors (probably) because of heredoc syntax","user":{"login":"kejwmen","id":1377075,"node_id":"MDQ6VXNlcjEzNzcwNzU=","avatar_url":"https://avatars0.githubusercontent.com/u/1377075?v=4","gravatar_id":"","url":"https://api.github.com/users/kejwmen","html_url":"https://github.com/kejwmen","followers_url":"https://api.github.com/users/kejwmen/followers","following_url":"https://api.github.com/users/kejwmen/following{/other_user}","gists_url":"https://api.github.com/users/kejwmen/gists{/gist_id}","starred_url":"https://api.github.com/users/kejwmen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kejwmen/subscriptions","organizations_url":"https://api.github.com/users/kejwmen/orgs","repos_url":"https://api.github.com/users/kejwmen/repos","events_url":"https://api.github.com/users/kejwmen/events{/privacy}","received_events_url":"https://api.github.com/users/kejwmen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-10-23T16:08:22Z","updated_at":"2018-10-23T16:52:40Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\nI use doctrine coding standard (5.0) and noticed some issues with heredoc syntax. After quick debugging it looks like crashes are related to one of your (great and very helpful) sniffs.\r\n\r\nThis is my reproducer:\r\n\r\n```\r\n<?php\r\n\r\ndeclare(strict_types=1);\r\n\r\nfinal class Reproducer\r\n{\r\n    public function hereDocExample()\r\n    {\r\n        $var = [\r\n            'foo',\r\n            <<<EATING_MEMORY\r\n    BAR\r\nEATING_MEMORY,\r\n        ];\r\n    }\r\n}\r\n```\r\n\r\nWithout trailing comma after `EATING_MEMORY` it works fine.\r\n\r\nWhen I runn `vendor/bin/phpcs --standard=Doctrine -p -vvv Reproducer.php` it freezes at: `Processing SlevomatCodingStandard\\Sniffs\\Exceptions\\ReferenceThrowableOnlySniff`.\r\n\r\nThanks for a great set of sniffs :)"},"comment":{"url":"https://api.github.com/repos/slevomat/coding-standard/issues/comments/432329648","html_url":"https://github.com/slevomat/coding-standard/issues/535#issuecomment-432329648","issue_url":"https://api.github.com/repos/slevomat/coding-standard/issues/535","id":432329648,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMjMyOTY0OA==","user":{"login":"kukulich","id":260445,"node_id":"MDQ6VXNlcjI2MDQ0NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/260445?v=4","gravatar_id":"","url":"https://api.github.com/users/kukulich","html_url":"https://github.com/kukulich","followers_url":"https://api.github.com/users/kukulich/followers","following_url":"https://api.github.com/users/kukulich/following{/other_user}","gists_url":"https://api.github.com/users/kukulich/gists{/gist_id}","starred_url":"https://api.github.com/users/kukulich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kukulich/subscriptions","organizations_url":"https://api.github.com/users/kukulich/orgs","repos_url":"https://api.github.com/users/kukulich/repos","events_url":"https://api.github.com/users/kukulich/events{/privacy}","received_events_url":"https://api.github.com/users/kukulich/received_events","type":"User","site_admin":false},"created_at":"2018-10-23T16:52:40Z","updated_at":"2018-10-23T16:52:40Z","author_association":"CONTRIBUTOR","body":"Yes, the comma is not allowed there in PHP 7.2 but it’s ok in PHP 7.3 so I decided not to fix it."}}
{"actor":{"display_login":"kukulich"}}