Skip to content

Commit 557de6a

Browse files
committed
Minor fixes
1 parent 7c69516 commit 557de6a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/ConstantContact/Client.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ public function getBody() : string
218218
*
219219
* If a Guzzle factory has been set, then the factory method will be called.
220220
*
221-
* @param array<string, string> $headers override the default headers
221+
* @param array<string, int|string> $headers override the default headers
222222
*/
223223
public function getGuzzleClient(string $body = '', array $headers = []) : \GuzzleHttp\Client
224224
{
@@ -377,9 +377,11 @@ public function removeScope(string $scope) : self
377377
*
378378
* @see [graham-campbell/guzzle-factory](https://packagist.org/packages/graham-campbell/guzzle-factory) for an example factory
379379
*/
380-
public function setGuzzleFactory(?callable $factory) : void
380+
public function setGuzzleFactory(?callable $factory) : self
381381
{
382382
$this->guzzleFactory = $factory;
383+
384+
return $this;
383385
}
384386

385387
public function setHost(string $host) : self

src/ConstantContact/Definition/Base.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ public function getData() : array
301301
/**
302302
* @return array all the valid fields for the object. Index is field name and value is the type.
303303
*/
304-
public function getfields() : array
304+
public function getFields() : array
305305
{
306306
return static::$fields;
307307
}

0 commit comments

Comments
 (0)