Skip to content

Commit

Permalink
Remove type-hint
Browse files Browse the repository at this point in the history
The explicit type-hint can be removed as it can be inferred.
  • Loading branch information
adriansuter committed Oct 31, 2019
1 parent 534fe00 commit 301a182
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion Slim/Middleware/ContentLengthMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ class ContentLengthMiddleware implements MiddlewareInterface
*/
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
{
/** @var ResponseInterface $response */
$response = $handler->handle($request);

// Add Content-Length header if not already added
Expand Down
1 change: 0 additions & 1 deletion Slim/Middleware/OutputBufferingMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
{
try {
ob_start();
/** @var ResponseInterface $response */
$response = $handler->handle($request);
$output = ob_get_clean();
} catch (Throwable $e) {
Expand Down

0 comments on commit 301a182

Please sign in to comment.