[Composer] Conflict with symfony/serializer:^6.4.23 because of a fatal error in APIP 2.7

This commit is contained in:
Grzegorz Sadowski 2025-06-30 12:19:35 +02:00
parent 759c2a98dd
commit 4af685f309
No known key found for this signature in database
GPG key ID: EF87FF4E6E3BD364
2 changed files with 6 additions and 0 deletions

View file

@ -37,3 +37,8 @@ references related issues.
This version moved files to flatten paths into a PSR-4 structure, which lead to a fatal error:
`PHP Fatal error: Uncaught Error: Failed opening required '/home/runner/work/Sylius/Sylius/vendor/behat/gherkin/src/../../../i18n.php' (include_path='.:/usr/share/php') in /home/runner/work/Sylius/Sylius/vendor/behat/gherkin/src/Keywords/CachedArrayKeywords.php:34`
- `symfony/serializer:^6.4.23`:
This version introduces a change in method signature that is not compatible with API Platform 2.7 and leads to a fatal error:
`PHP Fatal error: Declaration of ApiPlatform\Serializer\AbstractItemNormalizer::getAllowedAttributes($classOrObject, array $context, $attributesAsString = false) must be compatible with Symfony\Component\Serializer\Normalizer\AbstractObjectNormalizer::getAllowedAttributes(object|string $classOrObject, array $context, bool $attributesAsString = false): array|bool in /home/runner/work/Sylius/Sylius/vendor/api-platform/core/src/Serializer/AbstractItemNormalizer.php on line 493`

View file

@ -190,6 +190,7 @@
"behat/gherkin": "^4.13.0",
"lexik/jwt-authentication-bundle": "^2.18",
"stof/doctrine-extensions-bundle": "1.8.0",
"symfony/serializer": "^6.4.23",
"symfony/validator": "5.4.25",
"twig/twig": "3.9.0"
},