Skip to content

ChoiceValidator trigger error #20779

@pengend

Description

@pengend

In ChoiceValidator.php, an error is triggered when the options strict is false
if (false === $constraint->strict) { @trigger_error('Setting the strict option of the Choice constraint to false is deprecated since version 3.2 and will be removed in 4.0.', E_USER_DEPRECATED); }

But the option is set to false by default in Choice.php
public $strict = false;

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions