Skip to content

Commit c852ac6

Browse files
committed
all the errors are fixed
1 parent d460098 commit c852ac6

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/Neo4jQueryAPI.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ public function run(string $cypher, array $parameters = []): ResultSet
4949
{
5050
$request = $this->requestFactory->buildRunQueryRequest($cypher, $parameters);
5151

52-
$response = $this->client->sendRequest($request);
53-
5452
try {
5553
$response = $this->client->sendRequest($request);
5654
} catch (RequestExceptionInterface $e) {
@@ -90,6 +88,8 @@ public function beginTransaction(): Transaction
9088
* Handles request exceptions by parsing error details and throwing a Neo4jException.
9189
*
9290
* @throws Neo4jException
91+
*
92+
* @return never
9393
*/
9494
private function handleRequestException(RequestExceptionInterface $e): void
9595
{

tests/Integration/Neo4jQueryAPIIntegrationTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,6 @@ public function testInvalidQueryException(): void
402402
}
403403
}
404404

405-
406-
407405
public function testWithExactNames(): void
408406
{
409407
$expected = new ResultSet(
@@ -428,7 +426,7 @@ public function testWithExactNames(): void
428426

429427
$filteredResults = array_values(array_filter(
430428
iterator_to_array($results),
431-
fn ($row) => isset($row['data']['n.name']) && in_array($row['data']['n.name'], ['bob1', 'alicy'], true)
429+
fn (ResultRow $row) => in_array($row['n.name'] ?? '', ['bob1', 'alicy'], true)
432430
));
433431

434432
$this->assertEquals(iterator_to_array($expected), $filteredResults);

0 commit comments

Comments
 (0)