{"action":"closed","issue":{"url":"https://api.github.com/repos/vrana/php-initialized/issues/5","labels_url":"https://api.github.com/repos/vrana/php-initialized/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/vrana/php-initialized/issues/5/comments","events_url":"https://api.github.com/repos/vrana/php-initialized/issues/5/events","html_url":"https://github.com/vrana/php-initialized/issues/5","id":59725432,"number":5,"title":"Fix undefined index: parent in check_variables() (line 176)","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/vrana/php-initialized/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/vrana/php-initialized/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/vrana/php-initialized/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-03T23:34:01Z","updated_at":"2015-03-03T23:34:01Z","closed_at":"2015-03-03T23:34:01Z","body":"```\nUndefined index: parent in check_variables() (line 176)\nUndefined index: DatabaseConnection in check_variables() (line 176)\n\nVariable $extends is supposed to hold information about super classes (I \nguess), but sometimes the super class is missing.\n\nI didn't studied this part well, so I've just provided a quick fix to get rid \nof these notices.\n\nIt seems that I need to parse the super classes first.\n\nThis issue has IMO the two sub-issues:\n- how to handle $class_name = 'parent'\n- how to parse the files in the right order (to parse super classes first)\n\nFor now, I've fixed this just by skipping this part if $class_name is parent or \n$extends[$class_name] isn't set.\n\nAnd my question is also is this really needed?\n\n\n\n```\n\nOriginal issue reported on code.google.com by `vo...@atomicant.co.uk` on 8 Nov 2011 at 11:49"}}