From ee5058c6b5ad3a78f6a9b66d0a2f61ac3e080db3 Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Thu, 25 Jan 2024 19:46:58 +0100 Subject: [PATCH] Fix errors occurred with Intervention Image 3.3.1 In the course of the Intervention Image update, there was a change which means that it is no longer possible to instantiate so-called "driver-specific" modifiers yourself. In this package, this initialization is always done by a generic class via the respective driver class. This fix sets the initialization to the static helper method used by the driver of the dependency itself. --- composer.json | 2 +- src/Layout/TextBox.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,