Skip to content

Commit 090f87b

Browse files
committed
DatingVIP: API: Response: json_decode expects string
1 parent f442c69 commit 090f87b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DatingVIP/API/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public function set($data)
107107

108108
case 'json':
109109
default:
110-
$this->data = empty($data) ? [] : (json_decode($data, true) ?: []);
110+
$this->data = empty($data) ? [] : (json_decode((string) $data, true) ?: []);
111111
$result = json_last_error() == JSON_ERROR_NONE;
112112
if (empty ($result)) {
113113
$this->error = [

0 commit comments

Comments
 (0)