Skip to content

Commit

Permalink
fix typehint
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusjatenee committed Oct 29, 2022
1 parent a0133bd commit 73c458a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Middleware/MagicTestMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

use Closure;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Illuminate\Support\Str;
use MagicTest\MagicTest\MagicTest;
use Symfony\Component\HttpFoundation\Response;

class MagicTestMiddleware
{
Expand All @@ -29,7 +29,7 @@ public function handle(Request $request, Closure $next): Response
if (! $this->responseContainsClosingHtmlTag($response)) {
return $response;
}

return tap($response)->setContent(
$this->addMagicTestScriptsToResponseContent($response->getContent())
);
Expand Down

0 comments on commit 73c458a

Please sign in to comment.