{"action":"created","issue":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/1238","repository_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer","labels_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/1238/labels{/name}","comments_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/1238/comments","events_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/1238/events","html_url":"https://github.com/squizlabs/PHP_CodeSniffer/pull/1238","id":195246009,"number":1238,"title":"Fix \"Uninitialized string offset\" notice on PHP 5.2","user":{"login":"jrfnl","id":663378,"avatar_url":"https://avatars.githubusercontent.com/u/663378?v=3","gravatar_id":"","url":"https://api.github.com/users/jrfnl","html_url":"https://github.com/jrfnl","followers_url":"https://api.github.com/users/jrfnl/followers","following_url":"https://api.github.com/users/jrfnl/following{/other_user}","gists_url":"https://api.github.com/users/jrfnl/gists{/gist_id}","starred_url":"https://api.github.com/users/jrfnl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrfnl/subscriptions","organizations_url":"https://api.github.com/users/jrfnl/orgs","repos_url":"https://api.github.com/users/jrfnl/repos","events_url":"https://api.github.com/users/jrfnl/events{/privacy}","received_events_url":"https://api.github.com/users/jrfnl/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-13T12:55:42Z","updated_at":"2016-12-13T22:42:09Z","closed_at":"2016-12-13T22:42:09Z","pull_request":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/pulls/1238","html_url":"https://github.com/squizlabs/PHP_CodeSniffer/pull/1238","diff_url":"https://github.com/squizlabs/PHP_CodeSniffer/pull/1238.diff","patch_url":"https://github.com/squizlabs/PHP_CodeSniffer/pull/1238.patch"},"body":"Quick & dirty fix for the issue reported in #1237. A better fix might still be needed.\r\n\r\nFixes #1237 "},"comment":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/comments/266885618","html_url":"https://github.com/squizlabs/PHP_CodeSniffer/pull/1238#issuecomment-266885618","issue_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/1238","id":266885618,"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-12-13T22:42:09Z","updated_at":"2016-12-13T22:42:09Z","body":"I use is_array to check if the tokens a simple or complex, so I used that again in this instance. It's what I should have been doing all along - checking if the previous token was a complex token, and then if it is actually a double colon. But it obviously slipped my mind that, at this point, some tokens are still simple non-array tokens.\r\n\r\nThanks for the report."}}
{"actor":{"display_login":"gsherwood"}}