Skip to content

Commit bcb886b

Browse files
committed
fix: Crash when data contains a single backslash
1 parent 772ee90 commit bcb886b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docker-compose.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ services:
5757
networks:
5858
- neo4j
5959
ports:
60-
- "11687:7687"
61-
- "11474:7474"
60+
- "7687:7687"
61+
- "7474:7474"
6262
environment:
6363
<<: *common-env
6464
NEO4j_server_bolt_advertised_address: localhost:11687
@@ -68,9 +68,9 @@ services:
6868
<<: *common-cluster
6969
hostname: server1
7070
ports:
71-
- "7687:7687"
72-
- "7473:7473"
73-
- "7474:7474"
71+
- "11687:7687"
72+
- "11473:7473"
73+
- "11474:7474"
7474
environment:
7575
<<: *common-core-env
7676
NEO4j_server_bolt_advertised_address: localhost:7687

src/Formatter/Specialised/BoltOGMTranslator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ public function mapValueToType(mixed $value)
300300
$type = get_debug_type($value);
301301
foreach ($this->rawToTypes as $class => $formatter) {
302302
/** @psalm-suppress ArgumentTypeCoercion */
303-
if ($type === $class || is_a($value, $class, true)) {
303+
if ($type === $class || is_a($value, $class)) {
304304
return $formatter($value);
305305
}
306306
}

0 commit comments

Comments
 (0)