File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -860,7 +860,7 @@ $server = new Server(array(
860860
861861Similarly, you can use the result of the ` $next ` middleware request handler
862862function to modify the outgoing response.
863- Note that as per the above documentation, the ` $next ` function may return a
863+ Note that as per the above documentation, the ` $next ` middleware request handler may return a
864864` ResponseInterface ` directly or one wrapped in a promise for deferred
865865resolution.
866866In order to simplify handling both paths, you can simply wrap this in a
@@ -880,7 +880,7 @@ $server = new Server(array(
880880));
881881```
882882
883- Note that the ` $next ` middleware request handler function may also throw an
883+ Note that the ` $next ` middleware request handler may also throw an
884884` Exception ` (or return a rejected promise) as described above.
885885The previous example does not catch any exceptions and would thus signal an
886886error condition to the ` Server ` .
You can’t perform that action at this time.
0 commit comments