Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Serializer] Missing dependency to polyfill #63707

Copy link
Copy link
@Nek-

Description

@Nek-
Issue body actions

Symfony version(s) affected

7.3

Description

The serializer component in version 7.3-74 contains a usage to the function array_any and do not have the polyfill as dependency.

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.

Additional Context

No response

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.