Skip to content

Commit 2679c14

Browse files
杨柳limingxinleo
authored andcommitted
Fixed trying to get property 'callback' of non-object in ValidationMiddleware.php (#667)
1 parent 1eef716 commit 2679c14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Middleware/ValidationMiddleware.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ protected function handleUnauthorizedException(UnauthorizedException $exception)
9999

100100
protected function shouldHandle(Dispatched $dispatched): bool
101101
{
102-
return $dispatched->status === Dispatcher::FOUND || ! $dispatched->handler->callback instanceof Closure;
102+
return $dispatched->status === Dispatcher::FOUND && ! $dispatched->handler->callback instanceof Closure;
103103
}
104104

105105
/**

0 commit comments

Comments
 (0)