Skip to content

There's been a breaking change somewhere between 3.1 and 3.3.1 #1281

@simonhamp

Description

@simonhamp

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions