-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
There's been a breaking change somewhere between 3.1 and 3.3.1 #1281
Description
Describe the bug
My test suite is failing when running against 3.3.1, but passes when running against 3.1.
You can see the test suite results here
It seems to be occurring because I'm manually instantiating the driver-specific modifier.
I'm doing that so that I can use a custom version of the modifier which explicitly exposes the Imagick TextModifier's boxSize method's visibility as public.
I'm doing this so that I can re-use that mechanism of calculating the size of the text, which I'm using as an approximation to help decide where lines should be broken when the text is constrained to a specific width.
(Perhaps there is already a better way to do this?)
Code Example
The files I've linked above may be the best code example.
Expected behavior
Given that the tests pass when running v3.1 of intervention/image, I'd have expected them to still pass on v3.3.1 as it's not clear that there are breaking changes
Environment (please complete the following information):
- PHP Version: 8.2.14
- OS: Ubuntu 22.04.3
- Intervention Image Version: 3.3.1
- GD or Imagick: Imagick