Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit ecab36d

Browse files
committed
Canceling previous MvcEvent errors when successfully dispatching a middleware
1 parent 5a914bd commit ecab36d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/MiddlewareListener.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ function (PsrServerRequestInterface $request, PsrResponseInterface $response) {
107107
}
108108
}
109109

110+
$event->setError('');
111+
110112
if (! $return instanceof PsrResponseInterface) {
111113
$event->setResult($return);
112114
return $return;

0 commit comments

Comments
 (0)