Skip to content

Commit 4abdd75

Browse files
committed
😶
1 parent 0dfca59 commit 4abdd75

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/HTTPClientTrait.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,11 @@ protected function httpPUT(string $url, array $params = null, $body = null, arra
103103

104104
/**
105105
* @param array $headers
106+
*
107+
* @return array
106108
*/
107-
protected function normalizeRequestHeaders(array $headers){
108-
$this->http->normalizeRequestHeaders($headers);
109+
protected function normalizeRequestHeaders(array $headers):array{
110+
return $this->http->normalizeRequestHeaders($headers);
109111
}
110112

111113
/**
@@ -114,10 +116,10 @@ protected function normalizeRequestHeaders(array $headers){
114116
*
115117
* @return array
116118
*/
117-
protected function checkParams($params, bool $booleans_as_string = null){
119+
protected function checkQueryParams($params, bool $booleans_as_string = null){
118120

119121
if(is_array($params)){
120-
$this->http->checkQueryParams($params, $booleans_as_string);
122+
return $this->http->checkQueryParams($params, $booleans_as_string);
121123
}
122124

123125
return $params;

0 commit comments

Comments
 (0)