Skip to content

Commit d91dd45

Browse files
committed
fixed tests
1 parent 7029117 commit d91dd45

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/Bolt/BoltConnection.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -392,25 +392,21 @@ public function assertNoFailure(Response $response): void
392392

393393
try {
394394
$resetResponse = $message->send()->getResponse();
395-
} catch (\Throwable $e) {
395+
} catch (Throwable $e) {
396396
$this->subscribedResults = [];
397397
throw Neo4jException::fromBoltResponse($response);
398398
}
399399

400400
$this->subscribedResults = [];
401401

402402
if ($resetResponse->signature === Signature::FAILURE) {
403-
throw new Neo4jException([
404-
Neo4jError::fromBoltResponse($resetResponse),
405-
Neo4jError::fromBoltResponse($response),
406-
]);
403+
throw new Neo4jException([Neo4jError::fromBoltResponse($resetResponse), Neo4jError::fromBoltResponse($response)]);
407404
}
408405

409406
throw Neo4jException::fromBoltResponse($response);
410407
}
411408
}
412409

413-
414410
/**
415411
* Discard unconsumed results - sends DISCARD to server for each subscribed result.
416412
*/

src/Databags/SummarizedResult.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ final class SummarizedResult extends CypherList
3939
* @param iterable<mixed, CypherMap<OGMTypes>>|callable():Generator<mixed, CypherMap<OGMTypes>> $iterable
4040
* @param list<string> $keys
4141
*/
42-
public function __construct(?ResultSummary &$summary, iterable|callable $iterable = [], array $keys =[])
42+
public function __construct(?ResultSummary &$summary, iterable|callable $iterable = [], array $keys = [])
4343
{
4444
parent::__construct($iterable);
4545
$this->summary = &$summary;

0 commit comments

Comments
 (0)