{"action":"created","comment":{"url":"https://api.github.com/repos/SonarSource/sonar-php/pulls/comments/146019743","pull_request_review_id":70909307,"id":146019743,"diff_hunk":"@@ -100,16 +100,11 @@\n   private static final String EXECUTION_OPERATOR = \"`[^`]*+`\";\n \n   /**\n-   * Heredoc\n+   * Heredoc / Nowdoc\n    */\n-  public static final String HEREDOC = \"(?s)\"\n-    + \"<<<[\" + WHITESPACE + \"]*(\\\"?([^\\r\\n'\\\"]++)\\\"?)(?:\\\\r\\\\n?+|\\\\n)(.*?)(?:\\\\r\\\\n?+|\\\\n)\\\\2\";\n-\n-  /**\n-   * Nowdoc\n-   */\n-  public static final String NOWDOC = \"(?s)\"\n-    + \"<<<[\" + WHITESPACE + \"]*'([^\\r\\n'\\\"]++)'.*?(?:\\\\r\\\\n?+|\\\\n)\\\\1\";\n+  public static final String NEW_LINE = \"(?:\\r\\n?+|\\n)\";\n+  public static final String HEREDOC = \"(?s)(<<<[\\u0020\\t\\u000B\\f]*\\\"?([^\\r\\n'\\\"]++)\\\"?\" + NEW_LINE + \")(?:(.*?)\" + NEW_LINE + \")?\\\\2\";\n+  public static final String NOWDOC = \"(?s)<<<[\\u0020\\t\\u000B\\f]*'([^\\r\\n'\\\"]++)'\" + NEW_LINE + \"(?:.*?\" + NEW_LINE + \")?\\\\1\";","path":"php-frontend/src/main/java/org/sonar/php/parser/LexicalConstant.java","position":17,"original_position":17,"commit_id":"fb9b385c98789d42352975dc136b4f0f41d60f84","original_commit_id":"fb9b385c98789d42352975dc136b4f0f41d60f84","user":{"login":"SonarTech","id":1842438,"avatar_url":"https://avatars2.githubusercontent.com/u/1842438?v=4","gravatar_id":"","url":"https://api.github.com/users/SonarTech","html_url":"https://github.com/SonarTech","followers_url":"https://api.github.com/users/SonarTech/followers","following_url":"https://api.github.com/users/SonarTech/following{/other_user}","gists_url":"https://api.github.com/users/SonarTech/gists{/gist_id}","starred_url":"https://api.github.com/users/SonarTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SonarTech/subscriptions","organizations_url":"https://api.github.com/users/SonarTech/orgs","repos_url":"https://api.github.com/users/SonarTech/repos","events_url":"https://api.github.com/users/SonarTech/events{/privacy}","received_events_url":"https://api.github.com/users/SonarTech/received_events","type":"User","site_admin":false},"body":"![MAJOR](https://sonarsource.github.io/sonar-github/severity-major.png 'Severity: MAJOR') Remove this Unicode escape sequence and use the character instead. [![rule](https://sonarsource.github.io/sonar-github/rule.png)](https://next.sonarqube.com/sonarqube/coding_rules#rule_key=squid%3AS2973)\n","created_at":"2017-10-20T17:16:41Z","updated_at":"2017-10-20T17:16:41Z","html_url":"https://github.com/SonarSource/sonar-php/pull/192#discussion_r146019743","pull_request_url":"https://api.github.com/repos/SonarSource/sonar-php/pulls/192","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/SonarSource/sonar-php/pulls/comments/146019743"},"html":{"href":"https://github.com/SonarSource/sonar-php/pull/192#discussion_r146019743"},"pull_request":{"href":"https://api.github.com/repos/SonarSource/sonar-php/pulls/192"}}},"pull_request":{"url":"https://api.github.com/repos/SonarSource/sonar-php/pulls/192","id":110666259,"html_url":"https://github.com/SonarSource/sonar-php/pull/192","diff_url":"https://github.com/SonarSource/sonar-php/pull/192.diff","patch_url":"https://github.com/SonarSource/sonar-php/pull/192.patch","issue_url":"https://api.github.com/repos/SonarSource/sonar-php/issues/192","number":192,"state":"closed","locked":false,"title":"Parse error: empty heredoc string","user":{"login":"vilchik-elena","id":10108186,"avatar_url":"https://avatars1.githubusercontent.com/u/10108186?v=4","gravatar_id":"","url":"https://api.github.com/users/vilchik-elena","html_url":"https://github.com/vilchik-elena","followers_url":"https://api.github.com/users/vilchik-elena/followers","following_url":"https://api.github.com/users/vilchik-elena/following{/other_user}","gists_url":"https://api.github.com/users/vilchik-elena/gists{/gist_id}","starred_url":"https://api.github.com/users/vilchik-elena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vilchik-elena/subscriptions","organizations_url":"https://api.github.com/users/vilchik-elena/orgs","repos_url":"https://api.github.com/users/vilchik-elena/repos","events_url":"https://api.github.com/users/vilchik-elena/events{/privacy}","received_events_url":"https://api.github.com/users/vilchik-elena/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-03-14T16:46:11Z","updated_at":"2017-10-20T17:16:41Z","closed_at":"2017-10-20T17:15:37Z","merged_at":null,"merge_commit_sha":"e4f905fa40215b49c31cb3b342d925d4fcdd9230","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/SonarSource/sonar-php/pulls/192/commits","review_comments_url":"https://api.github.com/repos/SonarSource/sonar-php/pulls/192/comments","review_comment_url":"https://api.github.com/repos/SonarSource/sonar-php/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SonarSource/sonar-php/issues/192/comments","statuses_url":"https://api.github.com/repos/SonarSource/sonar-php/statuses/fb9b385c98789d42352975dc136b4f0f41d60f84","head":{"label":"SonarSource:SONARPHP-689","ref":"SONARPHP-689","sha":"fb9b385c98789d42352975dc136b4f0f41d60f84","user":{"login":"SonarSource","id":545988,"avatar_url":"https://avatars0.githubusercontent.com/u/545988?v=4","gravatar_id":"","url":"https://api.github.com/users/SonarSource","html_url":"https://github.com/SonarSource","followers_url":"https://api.github.com/users/SonarSource/followers","following_url":"https://api.github.com/users/SonarSource/following{/other_user}","gists_url":"https://api.github.com/users/SonarSource/gists{/gist_id}","starred_url":"https://api.github.com/users/SonarSource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SonarSource/subscriptions","organizations_url":"https://api.github.com/users/SonarSource/orgs","repos_url":"https://api.github.com/users/SonarSource/repos","events_url":"https://api.github.com/users/SonarSource/events{/privacy}","received_events_url":"https://api.github.com/users/SonarSource/received_events","type":"Organization","site_admin":false},"repo":{"id":4544982,"name":"sonar-php","full_name":"SonarSource/sonar-php","owner":{"login":"SonarSource","id":545988,"avatar_url":"https://avatars0.githubusercontent.com/u/545988?v=4","gravatar_id":"","url":"https://api.github.com/users/SonarSource","html_url":"https://github.com/SonarSource","followers_url":"https://api.github.com/users/SonarSource/followers","following_url":"https://api.github.com/users/SonarSource/following{/other_user}","gists_url":"https://api.github.com/users/SonarSource/gists{/gist_id}","starred_url":"https://api.github.com/users/SonarSource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SonarSource/subscriptions","organizations_url":"https://api.github.com/users/SonarSource/orgs","repos_url":"https://api.github.com/users/SonarSource/repos","events_url":"https://api.github.com/users/SonarSource/events{/privacy}","received_events_url":"https://api.github.com/users/SonarSource/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SonarSource/sonar-php","description":"PHP Analyzer for SonarQube","fork":false,"url":"https://api.github.com/repos/SonarSource/sonar-php","forks_url":"https://api.github.com/repos/SonarSource/sonar-php/forks","keys_url":"https://api.github.com/repos/SonarSource/sonar-php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SonarSource/sonar-php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SonarSource/sonar-php/teams","hooks_url":"https://api.github.com/repos/SonarSource/sonar-php/hooks","issue_events_url":"https://api.github.com/repos/SonarSource/sonar-php/issues/events{/number}","events_url":"https://api.github.com/repos/SonarSource/sonar-php/events","assignees_url":"https://api.github.com/repos/SonarSource/sonar-php/assignees{/user}","branches_url":"https://api.github.com/repos/SonarSource/sonar-php/branches{/branch}","tags_url":"https://api.github.com/repos/SonarSource/sonar-php/tags","blobs_url":"https://api.github.com/repos/SonarSource/sonar-php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SonarSource/sonar-php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SonarSource/sonar-php/git/refs{/sha}","trees_url":"https://api.github.com/repos/SonarSource/sonar-php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SonarSource/sonar-php/statuses/{sha}","languages_url":"https://api.github.com/repos/SonarSource/sonar-php/languages","stargazers_url":"https://api.github.com/repos/SonarSource/sonar-php/stargazers","contributors_url":"https://api.github.com/repos/SonarSource/sonar-php/contributors","subscribers_url":"https://api.github.com/repos/SonarSource/sonar-php/subscribers","subscription_url":"https://api.github.com/repos/SonarSource/sonar-php/subscription","commits_url":"https://api.github.com/repos/SonarSource/sonar-php/commits{/sha}","git_commits_url":"https://api.github.com/repos/SonarSource/sonar-php/git/commits{/sha}","comments_url":"https://api.github.com/repos/SonarSource/sonar-php/comments{/number}","issue_comment_url":"https://api.github.com/repos/SonarSource/sonar-php/issues/comments{/number}","contents_url":"https://api.github.com/repos/SonarSource/sonar-php/contents/{+path}","compare_url":"https://api.github.com/repos/SonarSource/sonar-php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SonarSource/sonar-php/merges","archive_url":"https://api.github.com/repos/SonarSource/sonar-php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SonarSource/sonar-php/downloads","issues_url":"https://api.github.com/repos/SonarSource/sonar-php/issues{/number}","pulls_url":"https://api.github.com/repos/SonarSource/sonar-php/pulls{/number}","milestones_url":"https://api.github.com/repos/SonarSource/sonar-php/milestones{/number}","notifications_url":"https://api.github.com/repos/SonarSource/sonar-php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SonarSource/sonar-php/labels{/name}","releases_url":"https://api.github.com/repos/SonarSource/sonar-php/releases{/id}","deployments_url":"https://api.github.com/repos/SonarSource/sonar-php/deployments","created_at":"2012-06-04T08:36:12Z","updated_at":"2017-10-16T13:13:21Z","pushed_at":"2017-10-20T17:16:19Z","git_url":"git://github.com/SonarSource/sonar-php.git","ssh_url":"git@github.com:SonarSource/sonar-php.git","clone_url":"https://github.com/SonarSource/sonar-php.git","svn_url":"https://github.com/SonarSource/sonar-php","homepage":"http://docs.sonarqube.org/display/PLUG/PHP+Plugin","size":12228,"stargazers_count":96,"watchers_count":96,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":45,"mirror_url":null,"archived":false,"open_issues_count":5,"forks":45,"open_issues":5,"watchers":96,"default_branch":"master"}},"base":{"label":"SonarSource:master","ref":"master","sha":"407d7b4d57fca9e72c46914e638d24b8e78d4daa","user":{"login":"SonarSource","id":545988,"avatar_url":"https://avatars0.githubusercontent.com/u/545988?v=4","gravatar_id":"","url":"https://api.github.com/users/SonarSource","html_url":"https://github.com/SonarSource","followers_url":"https://api.github.com/users/SonarSource/followers","following_url":"https://api.github.com/users/SonarSource/following{/other_user}","gists_url":"https://api.github.com/users/SonarSource/gists{/gist_id}","starred_url":"https://api.github.com/users/SonarSource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SonarSource/subscriptions","organizations_url":"https://api.github.com/users/SonarSource/orgs","repos_url":"https://api.github.com/users/SonarSource/repos","events_url":"https://api.github.com/users/SonarSource/events{/privacy}","received_events_url":"https://api.github.com/users/SonarSource/received_events","type":"Organization","site_admin":false},"repo":{"id":4544982,"name":"sonar-php","full_name":"SonarSource/sonar-php","owner":{"login":"SonarSource","id":545988,"avatar_url":"https://avatars0.githubusercontent.com/u/545988?v=4","gravatar_id":"","url":"https://api.github.com/users/SonarSource","html_url":"https://github.com/SonarSource","followers_url":"https://api.github.com/users/SonarSource/followers","following_url":"https://api.github.com/users/SonarSource/following{/other_user}","gists_url":"https://api.github.com/users/SonarSource/gists{/gist_id}","starred_url":"https://api.github.com/users/SonarSource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SonarSource/subscriptions","organizations_url":"https://api.github.com/users/SonarSource/orgs","repos_url":"https://api.github.com/users/SonarSource/repos","events_url":"https://api.github.com/users/SonarSource/events{/privacy}","received_events_url":"https://api.github.com/users/SonarSource/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SonarSource/sonar-php","description":"PHP Analyzer for SonarQube","fork":false,"url":"https://api.github.com/repos/SonarSource/sonar-php","forks_url":"https://api.github.com/repos/SonarSource/sonar-php/forks","keys_url":"https://api.github.com/repos/SonarSource/sonar-php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SonarSource/sonar-php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SonarSource/sonar-php/teams","hooks_url":"https://api.github.com/repos/SonarSource/sonar-php/hooks","issue_events_url":"https://api.github.com/repos/SonarSource/sonar-php/issues/events{/number}","events_url":"https://api.github.com/repos/SonarSource/sonar-php/events","assignees_url":"https://api.github.com/repos/SonarSource/sonar-php/assignees{/user}","branches_url":"https://api.github.com/repos/SonarSource/sonar-php/branches{/branch}","tags_url":"https://api.github.com/repos/SonarSource/sonar-php/tags","blobs_url":"https://api.github.com/repos/SonarSource/sonar-php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SonarSource/sonar-php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SonarSource/sonar-php/git/refs{/sha}","trees_url":"https://api.github.com/repos/SonarSource/sonar-php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SonarSource/sonar-php/statuses/{sha}","languages_url":"https://api.github.com/repos/SonarSource/sonar-php/languages","stargazers_url":"https://api.github.com/repos/SonarSource/sonar-php/stargazers","contributors_url":"https://api.github.com/repos/SonarSource/sonar-php/contributors","subscribers_url":"https://api.github.com/repos/SonarSource/sonar-php/subscribers","subscription_url":"https://api.github.com/repos/SonarSource/sonar-php/subscription","commits_url":"https://api.github.com/repos/SonarSource/sonar-php/commits{/sha}","git_commits_url":"https://api.github.com/repos/SonarSource/sonar-php/git/commits{/sha}","comments_url":"https://api.github.com/repos/SonarSource/sonar-php/comments{/number}","issue_comment_url":"https://api.github.com/repos/SonarSource/sonar-php/issues/comments{/number}","contents_url":"https://api.github.com/repos/SonarSource/sonar-php/contents/{+path}","compare_url":"https://api.github.com/repos/SonarSource/sonar-php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SonarSource/sonar-php/merges","archive_url":"https://api.github.com/repos/SonarSource/sonar-php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SonarSource/sonar-php/downloads","issues_url":"https://api.github.com/repos/SonarSource/sonar-php/issues{/number}","pulls_url":"https://api.github.com/repos/SonarSource/sonar-php/pulls{/number}","milestones_url":"https://api.github.com/repos/SonarSource/sonar-php/milestones{/number}","notifications_url":"https://api.github.com/repos/SonarSource/sonar-php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SonarSource/sonar-php/labels{/name}","releases_url":"https://api.github.com/repos/SonarSource/sonar-php/releases{/id}","deployments_url":"https://api.github.com/repos/SonarSource/sonar-php/deployments","created_at":"2012-06-04T08:36:12Z","updated_at":"2017-10-16T13:13:21Z","pushed_at":"2017-10-20T17:16:19Z","git_url":"git://github.com/SonarSource/sonar-php.git","ssh_url":"git@github.com:SonarSource/sonar-php.git","clone_url":"https://github.com/SonarSource/sonar-php.git","svn_url":"https://github.com/SonarSource/sonar-php","homepage":"http://docs.sonarqube.org/display/PLUG/PHP+Plugin","size":12228,"stargazers_count":96,"watchers_count":96,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":45,"mirror_url":null,"archived":false,"open_issues_count":5,"forks":45,"open_issues":5,"watchers":96,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SonarSource/sonar-php/pulls/192"},"html":{"href":"https://github.com/SonarSource/sonar-php/pull/192"},"issue":{"href":"https://api.github.com/repos/SonarSource/sonar-php/issues/192"},"comments":{"href":"https://api.github.com/repos/SonarSource/sonar-php/issues/192/comments"},"review_comments":{"href":"https://api.github.com/repos/SonarSource/sonar-php/pulls/192/comments"},"review_comment":{"href":"https://api.github.com/repos/SonarSource/sonar-php/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SonarSource/sonar-php/pulls/192/commits"},"statuses":{"href":"https://api.github.com/repos/SonarSource/sonar-php/statuses/fb9b385c98789d42352975dc136b4f0f41d60f84"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"SonarTech"}}