Skip to content

Adding the possibility to use BackedEnumFilter on values 0, -1, -2 etc. #8475

Description

@boSBM

Description
It is currently not possible to use the BackedEnumFilter on values below 1, currently i have a enum class starting at 0. I cannot use the BackedEnumFilter for this currently.

Example

$values = is_array($value) ? $value : [$value];

    $normalizedValues = array_values(array_filter(
        array_map(fn ($value) => $this->normalizeValue($value, $property), $values),
        static fn ($value) => null !== $value,
    ));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions