CookiePlugin::createCookie is incompatible with the latest Cookie object. https://github.com/php-http/message/blob/master/src/Cookie.php