File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ class APIResponse {
21
21
* @param mixed The data if present.
22
22
* @param mixed The error if present.
23
23
*/
24
- function __construct (string $ result , mixed $ data , mixed $ error ) {
24
+ function __construct (string $ result , $ data , $ error ) {
25
25
$ this ->result = $ result ;
26
26
$ this ->data = $ data ;
27
27
$ this ->error = $ error ;
@@ -41,7 +41,7 @@ function isSuccess(): bool {
41
41
*
42
42
* @return mixed The response data, or null if it was errored.
43
43
*/
44
- function getData (): mixed {
44
+ function getData () {
45
45
return $ this ->data ;
46
46
}
47
47
@@ -59,7 +59,7 @@ function isError(): bool {
59
59
*
60
60
* @return mixed The response error, or null if it was successful.
61
61
*/
62
- function getError (): mixed {
62
+ function getError () {
63
63
return $ this ->error ;
64
64
}
65
65
You can’t perform that action at this time.
0 commit comments