Skip to content

Conversation

@AntePrkacin
Copy link
Contributor

Upgraded bundle to use Ibexa version 5.
Made small changes to code (because of PHP8).
Modified phpunit.xml file to newer version and bumped the PHP and Symfony versions in tests.yml workflow.

@AntePrkacin AntePrkacin requested a review from emodric October 16, 2025 14:22
@AntePrkacin AntePrkacin self-assigned this Oct 16, 2025
use function explode;
use function implode;
use function trim;
use function mb_trim;
Copy link
Member

Choose a reason for hiding this comment

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

mb_trim is only available in PHP 8.4. So we should disable this CS fixer rule and revert to using trim.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

683f4bf
Changed it here

"require-dev": {
"phpunit/phpunit": "^9.0"
"phpunit/phpunit": "^12.0",
"symfony/form": "^7.3",
Copy link
Member

Choose a reason for hiding this comment

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

Why do we need these in require-dev ?

Copy link
Contributor Author

@AntePrkacin AntePrkacin Oct 20, 2025

Choose a reason for hiding this comment

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

phpunit/phpunit bundle is just updated to a higher version and symfony/form is added because it is used in several classes in the bundle - FieldValueTransformer, ContentTypeListFieldType, FormMapper, etc. (the Symfony\Component\Form\... use statement)

Copy link
Member

Choose a reason for hiding this comment

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

symfony/form should be then moved to require.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

651c8e0
Moved the symfony/form bundle to require section of the composer.json file.

@emodric emodric merged commit 0a76b93 into master Oct 28, 2025
2 checks passed
@emodric emodric deleted the NGSTACK-998-upgrade-bundle-to-Ibexa-version-5 branch October 28, 2025 13:44
@emodric
Copy link
Member

emodric commented Oct 28, 2025

Thanks @AntePrkacin !

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