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

Commit b7becdc

Browse files
committed
Updates the return value annotation for marshalMiddlewarePipe()
1 parent f035215 commit b7becdc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/MarshalMiddlewareTrait.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ private function prepareMiddleware($middleware, ContainerInterface $container =
8787
* @param null|ContainerInterface $container
8888
* @param bool $forError Whether or not the middleware pipe generated is
8989
* intended to be populated with error middleware; defaults to false.
90-
* @return MiddlewarePipe When $forError is true, returns an ErrorMiddlewarePipe.
90+
* @return MiddlewarePipe|ErrorMiddlewarePipe When $forError is true,
91+
* returns an ErrorMiddlewarePipe.
9192
* @throws Exception\InvalidMiddlewareException for any invalid middleware items.
9293
*/
9394
private function marshalMiddlewarePipe(array $middlewares, ContainerInterface $container = null, $forError = false)

0 commit comments

Comments
 (0)