Skip to content

Commit c8f8c62

Browse files
committed
Fixed minimum constraint for RationalNumber
1 parent 7455cd7 commit c8f8c62

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/RationalNumberInput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ protected function getFieldDefinition() : \Graphpinator\Typesystem\Argument\Argu
2828
\Graphpinator\Typesystem\Container::Int()->notNull(),
2929
)->addDirective(
3030
$this->constraintDirectiveAccessor->getInt(),
31-
['min' => 0],
31+
['min' => 1],
3232
),
3333
]);
3434
}

src/RationalNumberType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ static function(\stdClass $number) : int {
4343
},
4444
)->addDirective(
4545
$this->constraintDirectiveAccessor->getInt(),
46-
['min' => 0],
46+
['min' => 1],
4747
),
4848
]);
4949
}

0 commit comments

Comments
 (0)