Skip to content

Commit

Permalink
Merge branch 'master' into 3.1
Browse files Browse the repository at this point in the history
# Conflicts:
#	.github/workflows/test.yml
  • Loading branch information
limingxinleo committed Oct 5, 2023
2 parents d869a9d + 4a87f5c commit 5a66725
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ protected function execute(ServerRequestInterface $psr7Request): ResponseInterfa
$middlewares = array_merge($middlewares, $registeredMiddlewares);
}

$middlewares = MiddlewareManager::sortMiddlewares($middlewares);

try {
$psr7Response = $this->dispatcher->dispatch($psr7Request, $middlewares, $this->coreMiddleware);
} catch (Throwable $throwable) {
Expand Down

0 comments on commit 5a66725

Please sign in to comment.