Skip to content

Commit 322d654

Browse files
committed
make Modifier class dependencies mutable
1 parent c166e33 commit 322d654

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/Modifiers/DownscaleModifier.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
class DownscaleModifier implements ModifierInterface
1111
{
1212
public function __construct(
13-
protected readonly Image $image,
14-
protected readonly array $options,
13+
protected Image $image,
14+
protected array $options,
1515
) {}
1616

1717
public function canHandle(Media $media): bool

src/Modifiers/FormatModifier.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
class FormatModifier implements ModifierInterface
1313
{
1414
public function __construct(
15-
protected readonly Filesystem $filesystem,
16-
protected readonly Image $image,
17-
protected readonly array $options,
15+
protected Filesystem $filesystem,
16+
protected Image $image,
17+
protected array $options,
1818
) {}
1919

2020
public function canHandle(Media $media): bool

src/Modifiers/PreviewModifier.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
class PreviewModifier implements ModifierInterface
1313
{
1414
public function __construct(
15-
protected readonly Filesystem $filesystem,
16-
protected readonly Image $image,
17-
protected readonly array $options,
15+
protected Filesystem $filesystem,
16+
protected Image $image,
17+
protected array $options,
1818
) {}
1919

2020
public function canHandle(Media $media): bool

0 commit comments

Comments
 (0)