Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
"require": {
"php": "^8.1",
"illuminate/support": "^8|^9|^10|^11|^12",
"illuminate/http": "^8|^9|^10|^11|^12",
"illuminate/routing": "^8|^9|^10|^11|^12",
"intervention/image": "^3.11"
},
"require-dev": {
Expand Down
3 changes: 1 addition & 2 deletions src/ImageResponseFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
namespace Intervention\Image\Laravel;

use Illuminate\Http\Response;
use Illuminate\Support\Facades\Response as ResponseFactory;
use Intervention\Image\Exceptions\DriverException;
use Intervention\Image\Exceptions\NotSupportedException;
use Intervention\Image\Exceptions\RuntimeException;
Expand Down Expand Up @@ -68,7 +67,7 @@ public static function make(
*/
public function response(): Response
{
return ResponseFactory::make(
return new Response(
content: $this->content(),
headers: $this->headers()
);
Expand Down
7 changes: 2 additions & 5 deletions tests/ImageResponseFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,10 @@
use Intervention\Image\ImageManager;
use Intervention\Image\Laravel\ImageResponseFactory;
use Intervention\Image\MediaType;
use Orchestra\Testbench\Concerns\WithWorkbench;
use Orchestra\Testbench\TestCase as TestBenchTestCase;
use PHPUnit\Framework\TestCase;

class ImageResponseFactoryTest extends TestBenchTestCase
class ImageResponseFactoryTest extends TestCase
{
use WithWorkbench;

protected Image $image;

protected function setUp(): void
Expand Down