Skip to content

Commit

Permalink
fix : middleware double calling
Browse files Browse the repository at this point in the history
  • Loading branch information
ipranjal committed Feb 16, 2025
1 parent 43b9415 commit 8938a10
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,6 @@ public function __call(string $function, mixed $args): mixed
*/
public function middleware(\Closure|callable|array|string $middlewares): void
{
$this->config()->append('middlewares', $middlewares);
$middlewares = $this->pipeline()->validateMiddleware(middlewares: $this->config()->get('middlewares'));
$this->config()->set('middlewares', $middlewares);
}
Expand Down

0 comments on commit 8938a10

Please sign in to comment.