Skip to content
This repository was archived by the owner on Dec 1, 2021. It is now read-only.

Commit 1eae897

Browse files
committed
fixed variable override
1 parent b0332c7 commit 1eae897

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Transaction/Transaction.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ public function run($statement, array $parameters = [], $tag = null)
7171
if (!$this->driverTransaction->isOpen() && !in_array($this->driverTransaction->status(), ['COMMITED', 'ROLLED_BACK'], true)) {
7272
$this->driverTransaction->begin();
7373
}
74-
$statement = Statement::create($statement, $parameters, $tag);
75-
$this->eventDispatcher->dispatch(Neo4jClientEvents::NEO4J_PRE_RUN, new PreRunEvent([$statement]));
74+
$stmt = Statement::create($statement, $parameters, $tag);
75+
$this->eventDispatcher->dispatch(Neo4jClientEvents::NEO4J_PRE_RUN, new PreRunEvent([$stmt]));
7676
$result = $this->driverTransaction->run(Statement::create($statement, $parameters, $tag));
7777
$this->eventDispatcher->dispatch(Neo4jClientEvents::NEO4J_POST_RUN, new PostRunEvent(ResultCollection::withResult($result)));
7878

0 commit comments

Comments
 (0)