Skip to content

Commit

Permalink
Fix errors occurred with Intervention Image 3.3.1
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
olivervogel committed Jan 25, 2024
1 parent 5059101 commit ee5058c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"require": {
"php": "^8.2",
"ext-imagick": "*",
"intervention/image": "~3.1.0"
"intervention/image": "~3.1"
},
"license": "MIT",
"autoload": {
Expand Down
2 changes: 1 addition & 1 deletion src/Layout/TextBox.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ee5058c

Please sign in to comment.