Replies: 3 comments · 2 replies
-
|
As previously said, the polyfill is present as dependency in symfony/serializer for 7.3 and 7.4: https://github.com/symfony/symfony/blob/7.3/src/Symfony/Component/Serializer/composer.json#L22 https://github.com/symfony/symfony/blob/7.4/src/Symfony/Component/Serializer/composer.json#L22 Could you post here the output of the |
Beta Was this translation helpful? Give feedback.
-
what does your composer.json looks like ? |
Beta Was this translation helpful? Give feedback.
-
|
@Nek- Did you remove |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Symfony version(s) affected
7.3
Description
The serializer component in version 7.3-74 contains a usage to the function
array_anyand do not have the polyfill as dependency.symfony/src/Symfony/Component/Serializer/DependencyInjection/SerializerPass.php
Line 92 in e197e85
Note: I'm opening an issue after #63702 to track this error.
How to reproduce
It is not often an error because the installation of the polyfill is done by the installer of Symfony. But in my case, I installed Sf on my computer with a recent version of PHP before to figure out that the PHP version was not the right one.
So I downgraded all the versions of Symfony from 8.0 to 7.4 manually in my composer.json then I used (with the right version of PHP, which was 8.3):
The installation does not complete because of the missing function
array_any.Possible Solution
Adding the polyfill as a dependency in the versions that requires it.
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions