Due to https://gerrit.wikimedia.org/r/#/c/265928/2/includes/WebResponse.php,cm whenever the WebResponseSetCookie runs, the session yields:
Notice: Undefined variable: date in includes/WebResponse.php on line <i>144
4d6d06253b28ee1fac28301ef596d78c1ba7859b
Some block executed when the hook returns true reference the wrong variable $date instead of $data. That is easy to fix but I am wondering why:
- none of the tests exercise the block of code triggered on WebResponseSetCookie
- login via the API does trigger WebResponseSetCookie since it is not set afaik