Answer the question
In order to leave comments, you need to log in
Is it possible to validate a number in Symfony?
I need to add a number check.
/**
* @var int|null
*
* @Assert\NotBlank
* @Serializer\Type(name="integer")
*/
private ?int $order = null;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question