**fix:** add min and step attributes to integer field in DateIntervalType

This commit is contained in:
2025-08-06 17:34:53 +02:00
parent 2754251fdc
commit aa085a1562
2 changed files with 10 additions and 0 deletions

View File

@@ -55,6 +55,10 @@ class DateIntervalType extends AbstractType
{
$builder
->add('n', IntegerType::class, [
'attr' => [
'min' => 0,
'step' => 1,
],
'constraints' => [
new GreaterThan([
'value' => 0,