diff --git a/src/Modifiers/ColorspaceModifier.php b/src/Modifiers/ColorspaceModifier.php index dbecc28a..4749a505 100644 --- a/src/Modifiers/ColorspaceModifier.php +++ b/src/Modifiers/ColorspaceModifier.php @@ -9,7 +9,7 @@ use Intervention\Image\Exceptions\NotSupportedException; class ColorspaceModifier extends AbstractModifier { - public function __construct(protected string|ColorspaceInterface $target) + public function __construct(public string|ColorspaceInterface $target) { } diff --git a/src/Modifiers/FitModifier.php b/src/Modifiers/FitModifier.php index e1fa5505..50a0d8ea 100644 --- a/src/Modifiers/FitModifier.php +++ b/src/Modifiers/FitModifier.php @@ -9,9 +9,9 @@ use Intervention\Image\Interfaces\SizeInterface; class FitModifier extends AbstractModifier { public function __construct( - protected int $width, - protected int $height, - protected string $position = 'center' + public int $width, + public int $height, + public string $position = 'center' ) { }