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

Commit d1f8240

Browse files
committed
Added return typehint to middleware
Evidently, PHP allows adding a typehint on a method defined in an interface so long as the interface did not define one.
1 parent 44a6ceb commit d1f8240

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ProblemDetailsMiddleware.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function __construct(bool $includeThrowableDetail = ProblemDetailsRespons
2929
/**
3030
* {@inheritDoc}
3131
*/
32-
public function process(ServerRequestInterface $request, DelegateInterface $delegate)
32+
public function process(ServerRequestInterface $request, DelegateInterface $delegate) : ResponseInterface
3333
{
3434
set_error_handler($this->createErrorHandler());
3535

0 commit comments

Comments
 (0)