Skip to content
This repository was archived by the owner on Sep 4, 2021. It is now read-only.

Commit f57b8ab

Browse files
committed
Fixed Issue #15 when requesting version
1 parent 633b1e5 commit f57b8ab

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Request/Method/Version.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ class Version extends AbstractMethod implements MethodInterface
2626
public function execute(array $optional = [])
2727
{
2828
$data = $this->getClient()->execute($this->method, $optional);
29+
if(is_string($data)) {
30+
$version = new VersionResponse();
31+
$version->setVersion($data);
32+
33+
return $version;
34+
}
35+
2936
return $this->hydrate(new VersionResponse(), $data);
3037
}
3138
}

0 commit comments

Comments
 (0)