{"action":"created","issue":{"url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/issues/2050","labels_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/issues/2050/labels{/name}","comments_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/issues/2050/comments","events_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/issues/2050/events","html_url":"https://github.com/wp-e-commerce/WP-e-Commerce/issues/2050","id":127283471,"number":2050,"title":"Use PHP5-style Object Constructors","user":{"login":"jbeales","id":104935,"avatar_url":"https://avatars.githubusercontent.com/u/104935?v=3","gravatar_id":"","url":"https://api.github.com/users/jbeales","html_url":"https://github.com/jbeales","followers_url":"https://api.github.com/users/jbeales/followers","following_url":"https://api.github.com/users/jbeales/following{/other_user}","gists_url":"https://api.github.com/users/jbeales/gists{/gist_id}","starred_url":"https://api.github.com/users/jbeales/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbeales/subscriptions","organizations_url":"https://api.github.com/users/jbeales/orgs","repos_url":"https://api.github.com/users/jbeales/repos","events_url":"https://api.github.com/users/jbeales/events{/privacy}","received_events_url":"https://api.github.com/users/jbeales/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-01-18T18:17:43Z","updated_at":"2016-01-19T18:12:35Z","closed_at":"2016-01-19T00:46:53Z","body":"I'm updating a site to be PHP7-ready, and WPeC is vomiting PHP Deprecated notices all over my error log. It seems we're using PHP4-style object constructors in at least 16 locations. \r\n\r\nI'm going to sort through these notices and create a `::__construct()` function for each class that has one. Is there any reason I shouldn't do this?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/issues/comments/172937880","html_url":"https://github.com/wp-e-commerce/WP-e-Commerce/issues/2050#issuecomment-172937880","issue_url":"https://api.github.com/repos/wp-e-commerce/WP-e-Commerce/issues/2050","id":172937880,"user":{"login":"JustinSainton","id":1168754,"avatar_url":"https://avatars.githubusercontent.com/u/1168754?v=3","gravatar_id":"","url":"https://api.github.com/users/JustinSainton","html_url":"https://github.com/JustinSainton","followers_url":"https://api.github.com/users/JustinSainton/followers","following_url":"https://api.github.com/users/JustinSainton/following{/other_user}","gists_url":"https://api.github.com/users/JustinSainton/gists{/gist_id}","starred_url":"https://api.github.com/users/JustinSainton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JustinSainton/subscriptions","organizations_url":"https://api.github.com/users/JustinSainton/orgs","repos_url":"https://api.github.com/users/JustinSainton/repos","events_url":"https://api.github.com/users/JustinSainton/events{/privacy}","received_events_url":"https://api.github.com/users/JustinSainton/received_events","type":"User","site_admin":false},"created_at":"2016-01-19T18:12:35Z","updated_at":"2016-01-19T18:12:35Z","body":"Yep, in theory, it would be lovely to remove our dependence on global variables - sadly, though, WordPress can't get rid of them, and neither can we. :dancers: "}}