fix: attempt to fix job parameters (#1050)

This commit is contained in:
Kyrch
2026-01-11 09:29:00 -03:00
committed by GitHub
parent b7d10d81e8
commit 6d9d549d52
+6 -4
View File
@@ -12,6 +12,7 @@ use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\Attributes\DeleteWhenMissingModels;
use Illuminate\Queue\Attributes\WithoutRelations;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
#[DeleteWhenMissingModels]
#[WithoutRelations]
@@ -20,12 +21,13 @@ class OptimizeImageJob implements ShouldQueue
use Dispatchable;
use InteractsWithQueue;
use Queueable;
use SerializesModels;
public function __construct(
public readonly Image $image,
public readonly string $extension = 'avif',
public readonly ?int $width = null,
public readonly ?int $height = null,
protected Image $image,
protected string $extension = 'avif',
protected ?int $width = null,
protected ?int $height = null,
) {}
public function handle(): void