Skip to content

Commit

Permalink
Prevent registering same interaction request
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed Jun 5, 2024
1 parent a5d4e3c commit 24d63ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Interaction/InteractionCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function registerRequest(InteractionRequest $request): void
$name = $request->getName();

if ($this->hasRequest($name)) {
throw new RelazyException(sprintf('Request [%s] already registered', $name));
return;
}

$this->requests[$name] = $request;
Expand Down

0 comments on commit 24d63ee

Please sign in to comment.