File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 2626
2727namespace NoGlitchYo \MiddlewareCollectionRequestHandler ;
2828
29+ use NoGlitchYo \MiddlewareCollectionRequestHandler \Exception \EmptyMiddlewareCollectionException ;
2930use Psr \Http \Server \MiddlewareInterface ;
3031
3132/**
@@ -43,8 +44,13 @@ interface MiddlewareCollectionInterface
4344 public function isEmpty (): bool ;
4445
4546 /**
46- * Must return the next middleware to process in the collection.
47+ * MUST return the next middleware to process in the collection.
4748 * Depending on the implemented strategy, the middleware MAY not be removed from the collection.
49+ *
50+ * MUST throws EmptyMiddlewareCollectionException if there is not next middleware to return.
51+ *
52+ * @throws EmptyMiddlewareCollectionException
53+ *
4854 * @return MiddlewareInterface
4955 */
5056 public function next (): MiddlewareInterface ;
You can’t perform that action at this time.
0 commit comments