payload: {"action":"created","issue":{"url":"https://api.github.com/repos/htmlacademy-php/48724-yeticave/issues/20","repository_url":"https://api.github.com/repos/htmlacademy-php/48724-yeticave","labels_url":"https://api.github.com/repos/htmlacademy-php/48724-yeticave/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/htmlacademy-php/48724-yeticave/issues/20/comments","events_url":"https://api.github.com/repos/htmlacademy-php/48724-yeticave/issues/20/events","html_url":"https://github.com/htmlacademy-php/48724-yeticave/issues/20","id":416396311,"node_id":"MDU6SXNzdWU0MTYzOTYzMTE=","number":20,"title":"Пустой POST запрос к авторизации выбрасывает предупреждения","user":{"login":"caseycs","id":76095,"node_id":"MDQ6VXNlcjc2MDk1","avatar_url":"https://avatars0.githubusercontent.com/u/76095?v=4","gravatar_id":"","url":"https://api.github.com/users/caseycs","html_url":"https://github.com/caseycs","followers_url":"https://api.github.com/users/caseycs/followers","following_url":"https://api.github.com/users/caseycs/following{/other_user}","gists_url":"https://api.github.com/users/caseycs/gists{/gist_id}","starred_url":"https://api.github.com/users/caseycs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caseycs/subscriptions","organizations_url":"https://api.github.com/users/caseycs/orgs","repos_url":"https://api.github.com/users/caseycs/repos","events_url":"https://api.github.com/users/caseycs/events{/privacy}","received_events_url":"https://api.github.com/users/caseycs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2019-03-02T13:16:30Z","updated_at":"2019-03-02T23:14:53Z","closed_at":null,"author_association":"COLLABORATOR","body":"```\r\n~> curl -X POST http://0.0.0.0:3000/login.php\r\n<br />\r\n<b>Notice</b>:  Undefined index: email in <b>/Users/ilia.kondrashov/htmlacademy/48724-yeticave/login.php</b> on line <b>14</b><br />\r\n<br />\r\n<b>Notice</b>:  Undefined index: password in <b>/Users/ilia.kondrashov/htmlacademy/48724-yeticave/login.php</b> on line <b>15</b><br />\r\n<!DOCTYPE html>\r\n<html lang=\"ru\">\r\n<head>\r\n```\r\n\r\nМы разбирали пример как раз как можно упростить проверку на ошибки, я даже скидывал тебе ссылку на описание `??` - но ты сделал чуть иначе чем в моем примере. Надо разобраться в чем проблема."},"comment":{"url":"https://api.github.com/repos/htmlacademy-php/48724-yeticave/issues/comments/468969630","html_url":"https://github.com/htmlacademy-php/48724-yeticave/issues/20#issuecomment-468969630","issue_url":"https://api.github.com/repos/htmlacademy-php/48724-yeticave/issues/20","id":468969630,"node_id":"MDEyOklzc3VlQ29tbWVudDQ2ODk2OTYzMA==","user":{"login":"caseycs","id":76095,"node_id":"MDQ6VXNlcjc2MDk1","avatar_url":"https://avatars0.githubusercontent.com/u/76095?v=4","gravatar_id":"","url":"https://api.github.com/users/caseycs","html_url":"https://github.com/caseycs","followers_url":"https://api.github.com/users/caseycs/followers","following_url":"https://api.github.com/users/caseycs/following{/other_user}","gists_url":"https://api.github.com/users/caseycs/gists{/gist_id}","starred_url":"https://api.github.com/users/caseycs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caseycs/subscriptions","organizations_url":"https://api.github.com/users/caseycs/orgs","repos_url":"https://api.github.com/users/caseycs/repos","events_url":"https://api.github.com/users/caseycs/events{/privacy}","received_events_url":"https://api.github.com/users/caseycs/received_events","type":"User","site_admin":false},"created_at":"2019-03-02T23:14:53Z","updated_at":"2019-03-02T23:14:53Z","author_association":"COLLABORATOR","body":"Давай разберем еще раз.\r\n\r\n```\r\ncleanVal($_POST['name']) ?? '';\r\n```\r\n\r\nвсе равно что \r\n\r\n```\r\n$tmp = cleanVal($_POST['name']);\r\nisset($tmp) ? $tmp : '';\r\n```\r\n\r\nНа первой строчке все еще есть обращение к несуществующей переменной.\r\nТ.е. работает как и должно, и ошибка ожидаемая."}}
other: {"actor":{"display_login":"caseycs"}}