Skip to content

Commit

Permalink
Apply fixes from Duster
Browse files Browse the repository at this point in the history
  • Loading branch information
BobWez98 authored and actions-user committed Jan 13, 2025
1 parent e475a2e commit d457ec1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Http/Controllers/FallbackController.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function __invoke(Request $request)
BackedEnumCaseNotFoundException::class,
ModelNotFoundException::class,
RecordsNotFoundException::class,
])->contains(fn($class) => $exception instanceof $class) || $request->expectsJson();
])->contains(fn ($class) => $exception instanceof $class) || $request->expectsJson();
});

if ($route && $response = $this->tryRoute($route['route'], $request)) {
Expand All @@ -64,7 +64,7 @@ public function __invoke(Request $request)

return $response;
}

Exceptions::shouldRenderJsonWhen(null);
abort(404);
}
Expand Down

0 comments on commit d457ec1

Please sign in to comment.