Skip to content

Commit

Permalink
fix: Fully qualify UnexpectedValueException namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
exaby73 committed Mar 10, 2025
1 parent 8bd3cc5 commit 763c9ce
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/EventHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace Neo4j\Neo4jBundle;

use http\Exception\UnexpectedValueException;
use Laudis\Neo4j\Databags\Statement;
use Laudis\Neo4j\Databags\SummarizedResult;
use Laudis\Neo4j\Enum\TransactionState;
Expand Down Expand Up @@ -186,7 +185,7 @@ private function createPreAndPostEventsAndIds(
),
PreTransactionCommitEvent::EVENT_ID,
],
TransactionState::TERMINATED => throw new UnexpectedValueException('TERMINATED is not a valid transaction state at this point'),
TransactionState::TERMINATED => throw new \UnexpectedValueException('TERMINATED is not a valid transaction state at this point'),
};
[$postEvent, $postEventId] = match ($nextTransactionState) {
TransactionState::ACTIVE => [
Expand Down Expand Up @@ -216,7 +215,7 @@ private function createPreAndPostEventsAndIds(
),
PostTransactionCommitEvent::EVENT_ID,
],
TransactionState::TERMINATED => throw new UnexpectedValueException('TERMINATED is not a valid transaction state at this point'),
TransactionState::TERMINATED => throw new \UnexpectedValueException('TERMINATED is not a valid transaction state at this point'),
};

return [
Expand Down

0 comments on commit 763c9ce

Please sign in to comment.