diff --git a/.gitignore b/.gitignore index e931b1eb..ff43aedb 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ tests/_reports tests/database_settings.yml vendor/ phpunit.xml +.idea diff --git a/build/install-neo.sh b/build/install-neo.sh index 89b7226e..bf971c28 100755 --- a/build/install-neo.sh +++ b/build/install-neo.sh @@ -3,7 +3,7 @@ export JAVA_HOME=/usr/lib/jvm/java-8-oracle export JRE_HOME=/usr/lib/jvm/java-8-oracle -wget http://dist.neo4j.org/neo4j-enterprise-3.3.0-unix.tar.gz > null +wget http://dist.neo4j.org/neo4j-enterprise-4.0.0-unix.tar.gz > null mkdir neo tar xzf neo4j-enterprise-3.3.0-unix.tar.gz -C neo --strip-components=1 > null sed -i.bak '0,/\(dbms\.security\.auth_enabled=\).*/s/^#//g' ./neo/conf/neo4j.conf diff --git a/src/HttpDriver/Result/StatementStatistics.php b/src/HttpDriver/Result/StatementStatistics.php index c72aa103..43be3a8a 100644 --- a/src/HttpDriver/Result/StatementStatistics.php +++ b/src/HttpDriver/Result/StatementStatistics.php @@ -83,7 +83,7 @@ public function __construct(array $statistics = []) $keys = [ 'contains_updates', 'nodes_created', 'nodes_deleted', 'properties_set', 'labels_added', 'labels_removed', 'indexes_added', 'indexes_removed', 'constraints_added', 'constraints_removed', 'relationship_deleted', - 'relationships_created', + 'relationships_created', 'contains_system_updates', 'system_updates', ]; foreach ($statistics as $key => $value) { diff --git a/src/HttpDriver/Session.php b/src/HttpDriver/Session.php index 25026c4d..83f785d6 100644 --- a/src/HttpDriver/Session.php +++ b/src/HttpDriver/Session.php @@ -191,10 +191,8 @@ public function prepareRequest(Pipeline $pipeline) 'statements' => $statements, ]); $headers = [ - [ - 'X-Stream' => true, - 'Content-Type' => 'application/json', - ], + 'X-Stream' => true, + 'Content-Type' => 'application/json', ]; return $this->requestFactory->createRequest('POST', sprintf('%s/db/data/transaction/commit', $this->uri), $headers, $body); diff --git a/tests/Issues/Issue40Test.php b/tests/Issues/Issue40Test.php index 632fce6e..49972990 100644 --- a/tests/Issues/Issue40Test.php +++ b/tests/Issues/Issue40Test.php @@ -25,9 +25,9 @@ public function testIssue() $this->emptyDb(); $this->client->run('CREATE (:BRIEF {id: 123})'); - $query = 'MATCH (s:BRIEF {id:{brief_id}}) + $query = 'MATCH (s:BRIEF {id: $brief_id}) CREATE (n:BRIEFNOTECARD) - SET n += {data} + SET n += $data CREATE (n)-[:CARD_OF {order:0}]->(s) RETURN n';