{"action":"closed","issue":{"url":"https://api.github.com/repos/AgelxNash/DocLister/issues/237","repository_url":"https://api.github.com/repos/AgelxNash/DocLister","labels_url":"https://api.github.com/repos/AgelxNash/DocLister/issues/237/labels{/name}","comments_url":"https://api.github.com/repos/AgelxNash/DocLister/issues/237/comments","events_url":"https://api.github.com/repos/AgelxNash/DocLister/issues/237/events","html_url":"https://github.com/AgelxNash/DocLister/issues/237","id":203608150,"number":237,"title":"Метод getUserIP (assets/lib/APIHelpers.class.php)","user":{"login":"poh-am","id":13567404,"avatar_url":"https://avatars1.githubusercontent.com/u/13567404?v=3","gravatar_id":"","url":"https://api.github.com/users/poh-am","html_url":"https://github.com/poh-am","followers_url":"https://api.github.com/users/poh-am/followers","following_url":"https://api.github.com/users/poh-am/following{/other_user}","gists_url":"https://api.github.com/users/poh-am/gists{/gist_id}","starred_url":"https://api.github.com/users/poh-am/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/poh-am/subscriptions","organizations_url":"https://api.github.com/users/poh-am/orgs","repos_url":"https://api.github.com/users/poh-am/repos","events_url":"https://api.github.com/users/poh-am/events{/privacy}","received_events_url":"https://api.github.com/users/poh-am/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-27T11:00:57Z","updated_at":"2017-04-04T21:20:03Z","closed_at":"2017-04-04T21:20:03Z","body":"Вызов метода getUserIP начиная с php версии 5.4.x приводит к ошибке типа WARNING: \r\n\"Non-static method APIHelpers::_getEnv() should not be called statically\"\r\nВозможно, следует изменить вызов метода _getEnv, например следующим образом:\r\n\r\n```\r\n$class = new self();\r\n switch (true) {\r\n/*         case ($tmp = self::_getEnv('HTTP_COMING_FROM')):\r\n                $out = $tmp;\r\n                break;\r\n            case ($tmp = self::_getEnv('HTTP_X_COMING_FROM')):\r\n                $out = $tmp;\r\n                break;\r\n*/\r\n             case ($tmp = $class->_getEnv('HTTP_COMING_FROM')):\r\n                $out = $tmp;\r\n                break;\r\n            case ($tmp = $class->_getEnv('HTTP_X_COMING_FROM')):\r\n                $out = $tmp;\r\n...\r\n}\r\n```\r\n\r\nлибо сделать метод _getEnv статическим"}}
{"actor":{"display_login":"AgelxNash"}}