Set parameter default to array() in WebResponse::setcookie()
authorThiemo Mättig <thiemo.maettig@wikimedia.de>
Fri, 27 Mar 2015 08:58:58 +0000 (09:58 +0100)
committerThiemo Mättig <thiemo.maettig@wikimedia.de>
Fri, 27 Mar 2015 08:58:58 +0000 (09:58 +0100)
commit53e6c5b237d22a61c4101e62f4635bd3a07e446e
treee668f962a641afc64c9049ca5fcf980f3817c75b
parentddeed658fc9fd52b1ce954e1ff4b4ccbb70ff1e8
Set parameter default to array() in WebResponse::setcookie()

This is a direct follow-up for the question raised in Ifab16c2.
Null is not a meaningful value in this case. As far as I can see the
only reason it was added was to make the parameter optional. Optional
array parameters are better marked with "= array()".

Change-Id: I86965d390fdb718de7fb81a9f4c48b2261c16aa9
includes/WebResponse.php