{"action":"opened","issue":{"url":"https://api.github.com/repos/robmorgan/phinx/issues/577","labels_url":"https://api.github.com/repos/robmorgan/phinx/issues/577/labels{/name}","comments_url":"https://api.github.com/repos/robmorgan/phinx/issues/577/comments","events_url":"https://api.github.com/repos/robmorgan/phinx/issues/577/events","html_url":"https://github.com/robmorgan/phinx/issues/577","id":90685049,"number":577,"title":"Notice triggered when $options['host'] is empty","user":{"login":"topikito","id":694244,"avatar_url":"https://avatars.githubusercontent.com/u/694244?v=3","gravatar_id":"","url":"https://api.github.com/users/topikito","html_url":"https://github.com/topikito","followers_url":"https://api.github.com/users/topikito/followers","following_url":"https://api.github.com/users/topikito/following{/other_user}","gists_url":"https://api.github.com/users/topikito/gists{/gist_id}","starred_url":"https://api.github.com/users/topikito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/topikito/subscriptions","organizations_url":"https://api.github.com/users/topikito/orgs","repos_url":"https://api.github.com/users/topikito/repos","events_url":"https://api.github.com/users/topikito/events{/privacy}","received_events_url":"https://api.github.com/users/topikito/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-24T14:07:12Z","updated_at":"2015-06-24T14:07:12Z","closed_at":null,"body":"On `src/Phinx/Db/Adapter/MysqlAdapter.php:87`, if no host is set in the config, the index \"host\" would not exist, therefor it will trigger a Notice:\r\n\r\n`PHP Notice:  Undefined index: host in .../vendor/robmorgan/phinx/src/Phinx/Db/Adapter/MysqlAdapter.php on line 87`\r\n\r\nHowever, I guess the PDO class falls back to \"localhost\" because the connection actually succeeds. I would fix it myself, but I don't know if you'd prefer to trigger an Exception or rather fallback to a \"localhost\" default (the same as PDO?)."}}