diff --git a/composer.json b/composer.json index fcd3db5..fd5d6aa 100644 --- a/composer.json +++ b/composer.json @@ -5,7 +5,7 @@ "require": { "php": "^8.2", "ext-imagick": "*", - "intervention/image": "~3.1.0" + "intervention/image": "~3.1" }, "license": "MIT", "autoload": { diff --git a/src/Layout/TextBox.php b/src/Layout/TextBox.php index 6b77119..b20ea7a 100644 --- a/src/Layout/TextBox.php +++ b/src/Layout/TextBox.php @@ -80,7 +80,7 @@ protected function getPrerenderedBox(): Rectangle protected function generateModifier(string $text, Point $position = new Point()): CustomTextModifier { - return new CustomTextModifier( + return CustomTextModifier::buildSpecialized( new TextModifier( $text, $position,