Skip to content

Commit

Permalink
Update Client.php
Browse files Browse the repository at this point in the history
  • Loading branch information
mlevent committed Jan 4, 2023
1 parent 24cb728 commit 19a410b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ public function __construct(string $url, ?array $parameters = null, bool $post =
/**
* get
*
* @param string|null $element
* @return string|array
* @param string|null $element
* @return mixed
*/
public function get(?string $element = null): string|array
public function get(?string $element = null): mixed
{
return is_null($element)
? $this->response
Expand All @@ -62,10 +62,10 @@ public function get(?string $element = null): string|array
/**
* object
*
* @param string|null $element
* @return string|object
* @param string|null $element
* @return mixed
*/
public function object(?string $element = null): string|object
public function object(?string $element = null): mixed
{
$response = json_decode(json_encode($this->response, JSON_FORCE_OBJECT), false);

Expand Down

0 comments on commit 19a410b

Please sign in to comment.