Skip to content

IBX-9727: Fixed strict types of Core Imagine integration layer #619

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 18 commits into
base: main
Choose a base branch
from

Conversation

alongosz
Copy link
Member

@alongosz alongosz commented Jul 16, 2025

Caution

🎫 Issue IBX-9727

Related PRs:

Description:

Follow up to #613. IO layer touches \Ibexa\Bundle\Core\Imagine namespace which contains Imagick/Gmagick image manipulation integration.

Contracts fixed:

  • \Ibexa\Contracts\Core\Variation\VariationHandler
  • \Ibexa\Core\FieldType\Image\AliasCleanerInterface (internal)

Outside of the namespace, fixed:

  • \Ibexa\Core\FieldType\Image\NullAliasCleaner
  • \Ibexa\Core\MVC\Symfony\Templating\Twig\Extension\ImageExtension

BC breaks:

\Ibexa\Contracts\Core\Variation\VariationHandler::getVariation now throws uniformly
\Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException instead of PHP's native InvalidArgumentException. Some implementations already threw the Repository one, but the main implementation threw the PHP's native one. It makes more sense for it to be the Repository exception. However, as can be inferred from the diff, Twig functions: ibexa_image_alias and ibexa_content_field_identifier_image_asset were affected.

For QA:

Scope: image variation generation.

Regression tests:

Documentation:

Probably a note about the breaking change.

@alongosz alongosz force-pushed the ibx-9727-strict-types-core-imagine branch from dd6f888 to 5a1342f Compare August 6, 2025 13:44
Copy link

sonarqubecloud bot commented Aug 6, 2025

Comment on lines +299 to +302
'value' => new ImageValue([
'id' => 'images/6/8/4/0/486-10-eng-GB/photo.jpg',
]),
]);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something is wrong with indentation here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants