Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Commit

Permalink
🚑️ Fix Response Type
Browse files Browse the repository at this point in the history
  • Loading branch information
bvtterfly committed Sep 8, 2022
1 parent 8b6cd06 commit eccda11
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Replay.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
use Bvtterfly\Replay\Contracts\Policy;
use Closure;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Symfony\Component\HttpFoundation\Response as StatusCode;
use Symfony\Component\HttpFoundation\Response;

class Replay
{
Expand All @@ -35,7 +34,7 @@ public function handle(Request $request, Closure $next, ?string $cachePrefix = n
$lock = Storage::lock($key);

if (! $lock->get()) {
abort(StatusCode::HTTP_CONFLICT, __('replay::responses.error_messages.already_in_progress'));
abort(Response::HTTP_CONFLICT, __('replay::responses.error_messages.already_in_progress'));
}

try {
Expand Down

0 comments on commit eccda11

Please sign in to comment.