Skip to content

Imposible to use find #184

Description

@mgralikowski

When we try to find a country by alternative names using sth like this:

(new Countries())->first(fn ($item): bool => \in_array($country, $item->alt_spellings, true))

We always get an error:

Exception : Serialization of 'Closure' is not allowed

It doesn't matter we use first() or filter(). Any option to use a function is not possible.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions