We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 223d5df commit b3fbf09Copy full SHA for b3fbf09
2 files changed
src/Illuminate/Http/Middleware/HandleCors.php
@@ -100,7 +100,7 @@ protected function resolveOptionsForPreflight(Request $request): array
100
$probe->setMethod($intendedMethod);
101
102
$route = $this->container['router']->getRoutes()->match($probe);
103
- } catch (NotFoundHttpException | MethodNotAllowedHttpException) {
+ } catch (NotFoundHttpException|MethodNotAllowedHttpException) {
104
return $globalOptions;
105
}
106
tests/Integration/Http/Middleware/HandleCorsTest.php
@@ -10,7 +10,6 @@
10
use Illuminate\Http\Request;
11
use Illuminate\Routing\Middleware\ThrottleRequests;
12
use Illuminate\Routing\Router;
13
-use Illuminate\Support\Facades\Auth;
14
use Illuminate\Support\Facades\RateLimiter;
15
use Orchestra\Testbench\TestCase;
16
0 commit comments