You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (array_any($tags, $closure = fn (array$tag) => (bool) $tag)) {
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):
rm -rf vendor composer.lock
composer install
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.
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