Skip to content

Commit

Permalink
Fixed PriorityMiddleware for testing. (#6183)
Browse files Browse the repository at this point in the history
  • Loading branch information
xuanyanwow authored Sep 30, 2023
1 parent f8c9f74 commit 4a87f5c
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 @@ -218,6 +218,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 4a87f5c

Please sign in to comment.