Skip to content

Commit 0c66e8b

Browse files
committed
fixed type error in http formatter on version 3.5
1 parent 1e0f882 commit 0c66e8b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Formatter/OGMFormatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function formatHttpResult(
113113
*/
114114
private function decideTranslator(ConnectionInterface $connection)
115115
{
116-
if (version_compare($connection->getServerAgent(), '4.2.5') >= 0) {
116+
if (version_compare($connection->getServerAgent(), '4.2.5') <= 0) {
117117
return $this->legacyHttpTranslator;
118118
}
119119

src/Formatter/SummarizedResultFormatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function __construct(OGMFormatter $formatter)
7575
*/
7676
public function formatHttpStats(stdClass $response, HttpConnection $connection, Statement $statement, float $resultAvailableAfter, float $resultConsumedAfter, CypherList $results): SummarizedResult
7777
{
78-
if ($response->summary instanceof stdClass) {
78+
if (isset($response->summary) && $response->summary instanceof stdClass) {
7979
/** @var stdClass $stats */
8080
$stats = $response->summary->stats;
8181
} elseif (isset($response->stats)) {

0 commit comments

Comments
 (0)