aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Http/Client/ClientService.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-01-16 16:41:41 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-01-16 19:19:58 +0100
commita345605ec19e3e840cf9646bcd35377fb2c254a1 (patch)
tree31ddc564b6001c543ed35a4324607c5d19db2d84 /lib/private/Http/Client/ClientService.php
parent13a787e2f5d22e4cd8204f4524ea3e2c4eba4d32 (diff)
downloadnextcloud-server-a345605ec19e3e840cf9646bcd35377fb2c254a1.tar.gz
nextcloud-server-a345605ec19e3e840cf9646bcd35377fb2c254a1.zip
Make OCP\Http strict
* Handle private files * Add return types * Add scalar typehints * Made strict * Fixed requiring proper guzzle message interface that is passed around Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Http/Client/ClientService.php')
-rw-r--r--lib/private/Http/Client/ClientService.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/Http/Client/ClientService.php b/lib/private/Http/Client/ClientService.php
index 108ffa709cf..1df54010a2d 100644
--- a/lib/private/Http/Client/ClientService.php
+++ b/lib/private/Http/Client/ClientService.php
@@ -1,4 +1,5 @@
<?php
+declare(strict_types=1);
/**
* @copyright Copyright (c) 2016, ownCloud, Inc.
*
@@ -23,6 +24,7 @@
namespace OC\Http\Client;
use GuzzleHttp\Client as GuzzleClient;
+use OCP\Http\Client\IClient;
use OCP\Http\Client\IClientService;
use OCP\ICertificateManager;
use OCP\IConfig;
@@ -51,7 +53,7 @@ class ClientService implements IClientService {
/**
* @return Client
*/
- public function newClient() {
+ public function newClient(): IClient {
return new Client($this->config, $this->certificateManager, new GuzzleClient());
}
}