Skip to content

Commit 763c9ce

Browse files
committed
fix: Fully qualify UnexpectedValueException namespace
1 parent 8bd3cc5 commit 763c9ce

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/EventHandler.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
namespace Neo4j\Neo4jBundle;
66

7-
use http\Exception\UnexpectedValueException;
87
use Laudis\Neo4j\Databags\Statement;
98
use Laudis\Neo4j\Databags\SummarizedResult;
109
use Laudis\Neo4j\Enum\TransactionState;
@@ -186,7 +185,7 @@ private function createPreAndPostEventsAndIds(
186185
),
187186
PreTransactionCommitEvent::EVENT_ID,
188187
],
189-
TransactionState::TERMINATED => throw new UnexpectedValueException('TERMINATED is not a valid transaction state at this point'),
188+
TransactionState::TERMINATED => throw new \UnexpectedValueException('TERMINATED is not a valid transaction state at this point'),
190189
};
191190
[$postEvent, $postEventId] = match ($nextTransactionState) {
192191
TransactionState::ACTIVE => [
@@ -216,7 +215,7 @@ private function createPreAndPostEventsAndIds(
216215
),
217216
PostTransactionCommitEvent::EVENT_ID,
218217
],
219-
TransactionState::TERMINATED => throw new UnexpectedValueException('TERMINATED is not a valid transaction state at this point'),
218+
TransactionState::TERMINATED => throw new \UnexpectedValueException('TERMINATED is not a valid transaction state at this point'),
220219
};
221220

222221
return [

0 commit comments

Comments
 (0)