diff --git a/.github/workflows/integration-test-cluster-neo4j-4.yml b/.github/workflows/integration-test-cluster-neo4j-4.yml index 1051ea69..9aa390ac 100644 --- a/.github/workflows/integration-test-cluster-neo4j-4.yml +++ b/.github/workflows/integration-test-cluster-neo4j-4.yml @@ -23,7 +23,7 @@ jobs: - uses: hoverkraft-tech/compose-action@v2.0.2 with: compose-file: './docker-compose-neo4j-4.yml' - up-flags: '--build' + up-flags: '--build --remove-orphans' - name: Test run: | docker compose run client composer install diff --git a/.github/workflows/integration-test-cluster-neo4j-5.yml b/.github/workflows/integration-test-cluster-neo4j-5.yml index cde68e1f..58289707 100644 --- a/.github/workflows/integration-test-cluster-neo4j-5.yml +++ b/.github/workflows/integration-test-cluster-neo4j-5.yml @@ -23,7 +23,7 @@ jobs: - uses: hoverkraft-tech/compose-action@v2.0.2 with: compose-file: './docker-compose.yml' - up-flags: '--build' + up-flags: '--build --remove-orphans' - name: Test run: | docker compose run client composer install diff --git a/.github/workflows/integration-test-single-server.yml b/.github/workflows/integration-test-single-server.yml index b6bdbccc..bbd88a65 100644 --- a/.github/workflows/integration-test-single-server.yml +++ b/.github/workflows/integration-test-single-server.yml @@ -21,7 +21,7 @@ jobs: - uses: hoverkraft-tech/compose-action@v2.0.2 with: compose-file: './docker-compose-neo4j-4.yml' - up-flags: '--build' + up-flags: '--build --remove-orphans' - name: Composer install run: | docker compose run client composer install diff --git a/src/Formatter/Specialised/BoltOGMTranslator.php b/src/Formatter/Specialised/BoltOGMTranslator.php index 6022048c..bdeb5ecd 100644 --- a/src/Formatter/Specialised/BoltOGMTranslator.php +++ b/src/Formatter/Specialised/BoltOGMTranslator.php @@ -300,7 +300,7 @@ public function mapValueToType(mixed $value) $type = get_debug_type($value); foreach ($this->rawToTypes as $class => $formatter) { /** @psalm-suppress ArgumentTypeCoercion */ - if ($type === $class || is_a($value, $class, true)) { + if ($type === $class || is_a($value, $class)) { return $formatter($value); } } diff --git a/tests/Integration/EdgeCasesTest.php b/tests/Integration/EdgeCasesTest.php index ad62c098..cc61895e 100644 --- a/tests/Integration/EdgeCasesTest.php +++ b/tests/Integration/EdgeCasesTest.php @@ -77,6 +77,10 @@ public function testComplex(): void public function testRunALotOfStatements(): void { + if (str_starts_with($_ENV['CONNECTION'] ?? '', 'http')) { + $this->markTestSkipped('HTTP mass queries overload tiny neo4j instances'); + } + $persons = $this->getSession()->run('MATCH (p:Person) RETURN p'); $movies = $this->getSession()->run('MATCH (m:Movie) RETURN m');