Skip to content

Conversation

@alongosz
Copy link
Member

🎫 Issue IBX-9727

Related PRs:

Description:

We were trying to incorrectly instantiate an UnauthorizedException (just for the purpose of mocking) and since ibexa/core#590 we can't get away with it.
Visible when running unit tests:

1) Error
The data provider specified for Ibexa\Tests\FieldTypeRichText\RichText\Converter\LinkTest::testConvertBadLocationLink is invalid.
TypeError: Ibexa\Core\Base\Exceptions\UnauthorizedException::__construct(): Argument #2 ($function) must be of type string, int given, called in /home/andrew/Product/packages/ibexa/fieldtype-richtext/tests/lib/RichText/Converter/LinkTest.php on line 278
/home/andrew/Product/packages/ibexa/fieldtype-richtext/vendor/ibexa/core/src/lib/Base/Exceptions/UnauthorizedException.php:37
/home/andrew/Product/packages/ibexa/fieldtype-richtext/tests/lib/RichText/Converter/LinkTest.php:278

2) Error
The data provider specified for Ibexa\Tests\FieldTypeRichText\RichText\Converter\LinkTest::testConvertBadContentLink is invalid.
TypeError: Ibexa\Core\Base\Exceptions\UnauthorizedException::__construct(): Argument #2 ($function) must be of type string, int given, called in /home/andrew/Product/packages/ibexa/fieldtype-richtext/tests/lib/RichText/Converter/LinkTest.php on line 493
/home/andrew/Product/packages/ibexa/fieldtype-richtext/vendor/ibexa/core/src/lib/Base/Exceptions/UnauthorizedException.php:37
/home/andrew/Product/packages/ibexa/fieldtype-richtext/tests/lib/RichText/Converter/LinkTest.php:493

@sonarqubecloud
Copy link

@adamwojs adamwojs merged commit 3a4f246 into main Jun 25, 2025
24 checks passed
@adamwojs adamwojs deleted the ibx-9727-translatable-strict-types branch June 25, 2025 04:10
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.

3 participants