Skip to content

Commit

Permalink
Added space in middleware exception message.
Browse files Browse the repository at this point in the history
  • Loading branch information
DevAmirul committed Nov 11, 2023
1 parent 9db45bb commit 6cad9b8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Middleware/BaseMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Devamirul\PRouter\Middleware;

// use App\Middlewares\AuthMiddleware;
use Devamirul\PRouter\Request\Request;

class BaseMiddleware {
Expand All @@ -23,7 +22,7 @@ public static function resolve($middlewareNames, Request $request): void {

foreach ($middlewareNames as $middleware) {
if (!isset($configMiddlewares[$middleware])) {
throw new \Exception('No matching middleware found for key' . $middleware);
throw new \Exception('No matching middleware found for key ' . $middleware);
}

(new $configMiddlewares[$middleware]())->handle($request);
Expand Down

0 comments on commit 6cad9b8

Please sign in to comment.