{"action":"opened","issue":{"url":"https://api.github.com/repos/codeguy/php-the-right-way/issues/585","labels_url":"https://api.github.com/repos/codeguy/php-the-right-way/issues/585/labels{/name}","comments_url":"https://api.github.com/repos/codeguy/php-the-right-way/issues/585/comments","events_url":"https://api.github.com/repos/codeguy/php-the-right-way/issues/585/events","html_url":"https://github.com/codeguy/php-the-right-way/issues/585","id":96221600,"number":585,"title":"Singleton 'private static $instance'","user":{"login":"zachleigh","id":5616626,"avatar_url":"https://avatars.githubusercontent.com/u/5616626?v=3","gravatar_id":"","url":"https://api.github.com/users/zachleigh","html_url":"https://github.com/zachleigh","followers_url":"https://api.github.com/users/zachleigh/followers","following_url":"https://api.github.com/users/zachleigh/following{/other_user}","gists_url":"https://api.github.com/users/zachleigh/gists{/gist_id}","starred_url":"https://api.github.com/users/zachleigh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zachleigh/subscriptions","organizations_url":"https://api.github.com/users/zachleigh/orgs","repos_url":"https://api.github.com/users/zachleigh/repos","events_url":"https://api.github.com/users/zachleigh/events{/privacy}","received_events_url":"https://api.github.com/users/zachleigh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-21T04:09:47Z","updated_at":"2015-07-21T04:09:47Z","closed_at":null,"body":"In the Singleton Design Pattern section, the Singleton class has a private static property $instance.  It should be protected because as it is, child classes do not have access to the property and getting an instance of a child fails with this error:\r\n```\r\nCannot access property Class::$instance in Singleton.php on line 19\r\n```"}}