From ee5058c6b5ad3a78f6a9b66d0a2f61ac3e080db3 Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Thu, 25 Jan 2024 19:46:58 +0100 Subject: [PATCH 1/5] 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, From dec98bc0eed5186f1419116ed7cca0f7aabee3ba Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Thu, 25 Jan 2024 19:55:57 +0100 Subject: [PATCH 2/5] Set version of Intervention Image --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index fd5d6aa..b92ce22 100644 --- a/composer.json +++ b/composer.json @@ -5,7 +5,7 @@ "require": { "php": "^8.2", "ext-imagick": "*", - "intervention/image": "~3.1" + "intervention/image": "~3.3" }, "license": "MIT", "autoload": { From 0592768c860d52583e428e5996f55c1723d42305 Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Thu, 25 Jan 2024 20:03:28 +0100 Subject: [PATCH 3/5] Set version of Intervention Image --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index b92ce22..ea39e7d 100644 --- a/composer.json +++ b/composer.json @@ -5,7 +5,7 @@ "require": { "php": "^8.2", "ext-imagick": "*", - "intervention/image": "~3.3" + "intervention/image": "~3.3.1" }, "license": "MIT", "autoload": { From 8da27536695216ed01ef6f5e14af25cd2bc03cf7 Mon Sep 17 00:00:00 2001 From: Simon Hamp Date: Fri, 26 Jan 2024 14:08:31 +0000 Subject: [PATCH 4/5] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index ea39e7d..4cc6635 100644 --- a/composer.json +++ b/composer.json @@ -5,7 +5,7 @@ "require": { "php": "^8.2", "ext-imagick": "*", - "intervention/image": "~3.3.1" + "intervention/image": "^3.3" }, "license": "MIT", "autoload": { From 838ae4da4c5e24884dea0a7f99f644fd44d7e37d Mon Sep 17 00:00:00 2001 From: Simon Hamp Date: Fri, 26 Jan 2024 14:13:44 +0000 Subject: [PATCH 5/5] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 4cc6635..daaf3ec 100644 --- a/composer.json +++ b/composer.json @@ -5,7 +5,7 @@ "require": { "php": "^8.2", "ext-imagick": "*", - "intervention/image": "^3.3" + "intervention/image": "^3.3.1" }, "license": "MIT", "autoload": {