Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typehint #57

Merged
merged 2 commits into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Example/ResponseExample.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,15 @@ public function responseExample()
* Errors array.
* In case of errors, API will return array detailing which parameters were invalid.
*
* @var array
* @var string[]
*/
$response->getErrors();

/**
* Original curl response.
* Original, unmodified response from curl request.
*
* @var mixed
* @var string
*/
$response->getCurlResponse();

Expand Down
5 changes: 1 addition & 4 deletions src/Client/Response/AddUserToGroupResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@
*/
class AddUserToGroupResponse extends Response
{
/**
* @param mixed $curlResponse
*/
public function __construct($curlResponse)
public function __construct(string $curlResponse)
{
$this->processCurlResponse($curlResponse);
}
Expand Down
5 changes: 1 addition & 4 deletions src/Client/Response/CancelRetryResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@
*/
class CancelRetryResponse extends Response
{
/**
* @param mixed $curlResponse
*/
public function __construct($curlResponse)
public function __construct(string $curlResponse)
{
$this->processCurlResponse($curlResponse);
}
Expand Down
5 changes: 1 addition & 4 deletions src/Client/Response/CreateGroupResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ class CreateGroupResponse extends Response
*/
private string $groupKey;

/**
* @param mixed $curlResponse
*/
public function __construct($curlResponse)
public function __construct(string $curlResponse)
{
$this->processCurlResponse($curlResponse);
}
Expand Down
5 changes: 1 addition & 4 deletions src/Client/Response/DisableUserInGroupResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@
*/
class DisableUserInGroupResponse extends Response
{
/**
* @param mixed $curlResponse
*/
public function __construct($curlResponse)
public function __construct(string $curlResponse)
{
$this->processCurlResponse($curlResponse);
}
Expand Down
5 changes: 1 addition & 4 deletions src/Client/Response/EnableUserInGroupResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@
*/
class EnableUserInGroupResponse extends Response
{
/**
* @param mixed $curlResponse
*/
public function __construct($curlResponse)
public function __construct(string $curlResponse)
{
$this->processCurlResponse($curlResponse);
}
Expand Down
5 changes: 1 addition & 4 deletions src/Client/Response/GlancesResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@
*/
class GlancesResponse extends Response
{
/**
* @param mixed $curlResponse
*/
public function __construct($curlResponse)
public function __construct(string $curlResponse)
{
$this->processCurlResponse($curlResponse);
}
Expand Down
5 changes: 1 addition & 4 deletions src/Client/Response/LicenseResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ class LicenseResponse extends Response
*/
private int $credits;

/**
* @param mixed $curlResponse
*/
public function __construct($curlResponse)
public function __construct(string $curlResponse)
{
$this->processCurlResponse($curlResponse);
}
Expand Down
5 changes: 1 addition & 4 deletions src/Client/Response/ListGroupsResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ final class ListGroupsResponse extends Response
*/
public array $groups = [];

/**
* @param mixed $curlResponse
*/
public function __construct($curlResponse)
public function __construct(string $curlResponse)
{
$this->processCurlResponse($curlResponse);
}
Expand Down
5 changes: 1 addition & 4 deletions src/Client/Response/MessageResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ class MessageResponse extends Response
*/
private string $receipt;

/**
* @param mixed $curlResponse
*/
public function __construct($curlResponse)
public function __construct(string $curlResponse)
{
$this->processCurlResponse($curlResponse);
}
Expand Down
5 changes: 1 addition & 4 deletions src/Client/Response/ReceiptResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,7 @@ class ReceiptResponse extends Response
*/
private ?\DateTime $calledBackAt;

/**
* @param mixed $curlResponse
*/
public function __construct($curlResponse)
public function __construct(string $curlResponse)
{
$this->processCurlResponse($curlResponse);
}
Expand Down
5 changes: 1 addition & 4 deletions src/Client/Response/RemoveUserFromGroupResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@
*/
class RemoveUserFromGroupResponse extends Response
{
/**
* @param mixed $curlResponse
*/
public function __construct($curlResponse)
public function __construct(string $curlResponse)
{
$this->processCurlResponse($curlResponse);
}
Expand Down
5 changes: 1 addition & 4 deletions src/Client/Response/RenameGroupResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@
*/
class RenameGroupResponse extends Response
{
/**
* @param mixed $curlResponse
*/
public function __construct($curlResponse)
public function __construct(string $curlResponse)
{
$this->processCurlResponse($curlResponse);
}
Expand Down
5 changes: 1 addition & 4 deletions src/Client/Response/SubscriptionResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ class SubscriptionResponse extends Response
*/
private string $subscribed_user_key;

/**
* @param mixed $curlResponse
*/
public function __construct($curlResponse)
public function __construct(string $curlResponse)
{
$this->processCurlResponse($curlResponse);
}
Expand Down
5 changes: 1 addition & 4 deletions src/Client/Response/UserGroupValidationResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@ class UserGroupValidationResponse extends Response
*/
private array $licenses;

/**
* @param mixed $curlResponse
*/
public function __construct($curlResponse)
public function __construct(string $curlResponse)
{
$this->processCurlResponse($curlResponse);
}
Expand Down
Loading