MWHttpRequest: Restore ability to pass null for $options
authorKunal Mehta <legoktm@member.fsf.org>
Tue, 6 Feb 2018 21:05:02 +0000 (13:05 -0800)
committerKunal Mehta <legoktm@member.fsf.org>
Tue, 6 Feb 2018 21:05:02 +0000 (13:05 -0800)
commit449e31a179e337edbc205262bb29476c901d19c5
tree36fb762fb32ec5fc6a8e0dccd4b361c5aaf6327a
parentd9c25c2f4776832c0fe3d7be091fd7f776991122
MWHttpRequest: Restore ability to pass null for $options

Prior to 3de744597e34, it was possible to pass `null` for $options.
Restore that by setting the default type to be null, and explicitly
document that null is a supported value in the doc block.

Also update the signature of MWHttpRequestTester to match.

Change-Id: I74d586afa5527e0a30ea99f3989f4dd12fa9fea1
includes/http/MWHttpRequest.php
tests/phpunit/includes/http/HttpTest.php