{"action":"created","issue":{"url":"https://api.github.com/repos/FriendsOfPHP/Sami/issues/144","labels_url":"https://api.github.com/repos/FriendsOfPHP/Sami/issues/144/labels{/name}","comments_url":"https://api.github.com/repos/FriendsOfPHP/Sami/issues/144/comments","events_url":"https://api.github.com/repos/FriendsOfPHP/Sami/issues/144/events","html_url":"https://github.com/FriendsOfPHP/Sami/pull/144","id":54511308,"number":144,"title":"Fix NULL being added to ParserContext classes","user":{"login":"erikwiffin","id":502000,"avatar_url":"https://avatars.githubusercontent.com/u/502000?v=3","gravatar_id":"","url":"https://api.github.com/users/erikwiffin","html_url":"https://github.com/erikwiffin","followers_url":"https://api.github.com/users/erikwiffin/followers","following_url":"https://api.github.com/users/erikwiffin/following{/other_user}","gists_url":"https://api.github.com/users/erikwiffin/gists{/gist_id}","starred_url":"https://api.github.com/users/erikwiffin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikwiffin/subscriptions","organizations_url":"https://api.github.com/users/erikwiffin/orgs","repos_url":"https://api.github.com/users/erikwiffin/repos","events_url":"https://api.github.com/users/erikwiffin/events{/privacy}","received_events_url":"https://api.github.com/users/erikwiffin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-15T22:06:34Z","updated_at":"2015-01-16T14:47:43Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/FriendsOfPHP/Sami/pulls/144","html_url":"https://github.com/FriendsOfPHP/Sami/pull/144","diff_url":"https://github.com/FriendsOfPHP/Sami/pull/144.diff","patch_url":"https://github.com/FriendsOfPHP/Sami/pull/144.patch"},"body":"Fixes bug referenced by ezzatron in https://github.com/FriendsOfPHP/Sami/issues/99#issuecomment-57895131. NULL was being added to the ParserContext classes array because of a complicated chain of events in PHP-Parser that resulted in `leaveClass` getting called without a matching `enterClass`. This doesn't fix the root cause, but it does allow for filtering out classes (ie. if SymfonyFilter is used)."},"comment":{"url":"https://api.github.com/repos/FriendsOfPHP/Sami/issues/comments/70263236","html_url":"https://github.com/FriendsOfPHP/Sami/pull/144#issuecomment-70263236","issue_url":"https://api.github.com/repos/FriendsOfPHP/Sami/issues/144","id":70263236,"user":{"login":"aik099","id":1277526,"avatar_url":"https://avatars.githubusercontent.com/u/1277526?v=3","gravatar_id":"","url":"https://api.github.com/users/aik099","html_url":"https://github.com/aik099","followers_url":"https://api.github.com/users/aik099/followers","following_url":"https://api.github.com/users/aik099/following{/other_user}","gists_url":"https://api.github.com/users/aik099/gists{/gist_id}","starred_url":"https://api.github.com/users/aik099/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aik099/subscriptions","organizations_url":"https://api.github.com/users/aik099/orgs","repos_url":"https://api.github.com/users/aik099/repos","events_url":"https://api.github.com/users/aik099/events{/privacy}","received_events_url":"https://api.github.com/users/aik099/received_events","type":"User","site_admin":false},"created_at":"2015-01-16T14:47:43Z","updated_at":"2015-01-16T14:47:43Z","body":"@erikwiffin , I've looked at current code I now agree with you that check you've made is the right one. So if nobody entered class, then leaving non-entered class should be ignored as well."}}