Skip to content

Commit 71a4679

Browse files
committed
Change http response instantiation
1 parent 6f55387 commit 71a4679

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/ImageResponseFactory.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
namespace Intervention\Image\Laravel;
66

77
use Illuminate\Http\Response;
8-
use Illuminate\Support\Facades\Response as ResponseFactory;
98
use Intervention\Image\Exceptions\DriverException;
109
use Intervention\Image\Exceptions\NotSupportedException;
1110
use Intervention\Image\Exceptions\RuntimeException;
@@ -68,7 +67,7 @@ public static function make(
6867
*/
6968
public function response(): Response
7069
{
71-
return ResponseFactory::make(
70+
return new Response(
7271
content: $this->content(),
7372
headers: $this->headers()
7473
);

tests/ImageResponseFactoryTest.php

+2-5
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,10 @@
1212
use Intervention\Image\ImageManager;
1313
use Intervention\Image\Laravel\ImageResponseFactory;
1414
use Intervention\Image\MediaType;
15-
use Orchestra\Testbench\Concerns\WithWorkbench;
16-
use Orchestra\Testbench\TestCase as TestBenchTestCase;
15+
use PHPUnit\Framework\TestCase;
1716

18-
class ImageResponseFactoryTest extends TestBenchTestCase
17+
class ImageResponseFactoryTest extends TestCase
1918
{
20-
use WithWorkbench;
21-
2219
protected Image $image;
2320

2421
protected function setUp(): void

0 commit comments

Comments
 (0)