]> source.dussan.org Git - nextcloud-server.git/commitdiff
RequestTestCase: Default type for headers needs to be array 19325/head
authorGeorg Ehrke <developer@georgehrke.com>
Tue, 10 Mar 2020 14:23:33 +0000 (15:23 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Fri, 27 Mar 2020 11:53:44 +0000 (12:53 +0100)
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
apps/dav/tests/unit/Connector/Sabre/RequestTest/RequestTestCase.php

index 771d73dec5faceebce45819e513f2f8ef9107c68..3624a9cc30e58dec14b8bb8e1bff0255cc313dd2 100644 (file)
@@ -92,7 +92,7 @@ abstract class RequestTestCase extends TestCase {
         * @return \Sabre\HTTP\Response
         * @throws \Exception
         */
-       protected function request($view, $user, $password, $method, $url, $body = null, $headers = null) {
+       protected function request($view, $user, $password, $method, $url, $body = null, $headers = []) {
                if (is_string($body)) {
                        $body = $this->getStream($body);
                }