Skip to content

Commit 2a79523

Browse files
committed
Resolve mixed type hints/assertions that fail
1 parent 22662d2 commit 2a79523

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/APIResponse.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class APIResponse {
2121
* @param mixed The data if present.
2222
* @param mixed The error if present.
2323
*/
24-
function __construct(string $result, mixed $data, mixed $error) {
24+
function __construct(string $result, $data, $error) {
2525
$this->result = $result;
2626
$this->data = $data;
2727
$this->error = $error;
@@ -41,7 +41,7 @@ function isSuccess(): bool {
4141
*
4242
* @return mixed The response data, or null if it was errored.
4343
*/
44-
function getData(): mixed {
44+
function getData() {
4545
return $this->data;
4646
}
4747

@@ -59,7 +59,7 @@ function isError(): bool {
5959
*
6060
* @return mixed The response error, or null if it was successful.
6161
*/
62-
function getError(): mixed {
62+
function getError() {
6363
return $this->error;
6464
}
6565

0 commit comments

Comments
 (0)