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
Hi @ker0x . How do you instantiate the constraint? Could you provide a concrete example where this is problematic? ideally, could you even provide a reproducer or a failing test case?
Note there is a test case asserting the current behavior should work (but perhaps incomplete):
@ogizanagi thanks for your quick reply. Actually it's working when using an array to configure the constraint but not with named arguments
// This works
#[Enum(['class' => EducationalSupport::class, 'asValue' => true, 'multiple' => true])]
// Throw a ConstraintDefinitionException with the following message "The Choice constraint expects a valid callback."
#[Enum(class: EducationalSupport::class, asValue: true, multiple: true)]
Since this commit, parameters order and signature for the
Choice
constraint has changed. As a result, theEnum
constraint does not behave as expected.For example, setting the
multiple
parameter on the Enum constraint result to be thecallback
parameter being set in the Choice constraint.The text was updated successfully, but these errors were encountered: