From 2fd2396495d4dfb27180bc92fe0babaf80b481e7 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Fri, 3 Nov 2017 09:53:01 +0100 Subject: [PATCH] [stable10] Fix Sabre\DAV\Client use statement for older PHP For some reason, when instantiating the class in PHP 5.6 during an upgrade, the use statement causes a conflict. --- lib/private/Http/Client/WebDavClientService.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/private/Http/Client/WebDavClientService.php b/lib/private/Http/Client/WebDavClientService.php index 84ad5aacf8f9..2515b30e8813 100644 --- a/lib/private/Http/Client/WebDavClientService.php +++ b/lib/private/Http/Client/WebDavClientService.php @@ -24,7 +24,6 @@ use OCP\Http\Client\IWebDavClientService; use OCP\IConfig; use OCP\ICertificateManager; -use Sabre\DAV\Client; /** * Class WebDavClientService @@ -86,7 +85,7 @@ public function newClient($settings) { } } - $client = new Client($settings); + $client = new \Sabre\DAV\Client($settings); $client->setThrowExceptions(true); if ($certPath !== null) {