Skip to content

Commit bb20a96

Browse files
author
Eugene Leonovich
committed
Tweak ClientAdapter
1 parent f2a4838 commit bb20a96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ClientAdapter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ public function __construct(Client $client)
2424

2525
public function call($funcName, array $args = [])
2626
{
27-
$result = $this->client->call($funcName, $args);
27+
$data = $this->client->call($funcName, $args)->getData();
2828

29-
return isset($result->getData()[0][0]) ? $result->getData() : [$result->getData()];
29+
return isset($data[0][0]) ? $data : [$data];
3030
}
3131
}

0 commit comments

Comments
 (0)