Skip to content

Commit

Permalink
Merge pull request #47 from DFoxinator/deadlockretry
Browse files Browse the repository at this point in the history
Allow null for service call
  • Loading branch information
DFoxinator authored Oct 6, 2020
2 parents 2108637 + ef7390e commit fbeb691
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/HttpClient/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public function executeQuery(string $query, array $params = [], bool $include_st
return $this->executeBatchQueries();
}

public function callService(string $service, string $body = '') : array
public function callService(string $service, string $body = '') : ?array
{

return $this->_sendNeo4jPostRequest($service, $body);
Expand Down Expand Up @@ -231,7 +231,7 @@ private function _getRequestHeaders() : array
/**
* @throws \SimpleNeo4j\HttpClient\Exception\ConnectionException
*/
private function _sendNeo4jPostRequest( string $endpoint, string $body ) : array
private function _sendNeo4jPostRequest( string $endpoint, string $body ) : ?array
{
$uri = $this->_getNeo4jUrl() . '/' . $endpoint;

Expand Down

0 comments on commit fbeb691

Please sign in to comment.