Skip to content

Commit

Permalink
chore: fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
mychidarko authored and github-actions[bot] committed Oct 15, 2024
1 parent a6d6a06 commit 87841a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ public static function use($middleware)
// if (in_array($middleware, static::$middleware)) {
// throw new \RuntimeException('Circular Middleware setup detected. Tried to queue the same Middleware twice.');
// }

if (is_string($middleware)) {
$middleware = class_exists($middleware) ? function () use ($middleware) {
(new $middleware())->call();
Expand Down

0 comments on commit 87841a7

Please sign in to comment.