Skip to content

Commit d496c9e

Browse files
committed
fixed merge conflicts and solved psalm errors
1 parent 9058cd1 commit d496c9e

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

src/Formatter/Specialised/BoltOGMTranslator.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,6 @@ private function makeFromBoltPath(BoltPath $path): Path
300300
}
301301
/** @var list<int> $indices */
302302
$indices = $path->indices;
303-
/** @var list<int> $ids */
304-
$ids = $path->indices;
305303

306304
return new Path(
307305
new CypherList($nodes),

tests/Unit/SummarizedResultListTest.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,12 @@ public function testListAfterNextOmitsConsumedRow(): void
5656
$nValues[] = $n;
5757
}
5858
self::assertSame([2, 3, 4, 5], $nValues);
59-
self::assertSame([2, 3, 4, 5], array_map(static fn (CypherMap $m): int => $m->get('n'), $rows));
59+
self::assertSame([2, 3, 4, 5], array_map(static function (CypherMap $m): int {
60+
$n = $m->get('n');
61+
self::assertIsInt($n);
62+
63+
return $n;
64+
}, $rows));
6065

6166
$nValues = [];
6267
foreach ($rows as $row) {

tests/Unit/TypeCasterTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,6 @@ public function __toString(): string
9696

9797
foreach ($inputs as $inputName => $inputValue) {
9898
foreach ($matrix as $method => $expectations) {
99-
/** @psalm-suppress MixedAssignment */
100-
$expected = $expectations[$inputName] ?? null;
10199
$expected = self::expectedValueForInput($expectations, $inputName);
102100
$key = $inputName.'->'.$method;
103101

0 commit comments

Comments
 (0)