Skip to content

Commit 4cf1543

Browse files
committed
Fix BC break about ConstraintViolationBuilderInterface::setPlural()
1 parent 9557c71 commit 4cf1543

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Validator/Violation/ConstraintViolationBuilderInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,13 @@ public function setInvalidValue(mixed $invalidValue): static;
8989
* Sets the number which determines how the plural form of the violation
9090
* message is chosen when it is translated.
9191
*
92-
* @param int|null $number The number for determining the plural form
92+
* @param int $number The number for determining the plural form
9393
*
9494
* @return $this
9595
*
9696
* @see \Symfony\Contracts\Translation\TranslatorInterface::trans()
9797
*/
98-
public function setPlural(?int $number): static;
98+
public function setPlural(int $number): static;
9999

100100
/**
101101
* Sets the violation code.

0 commit comments

Comments
 (0)