We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9557c71 commit 4cf1543Copy full SHA for 4cf1543
src/Symfony/Component/Validator/Violation/ConstraintViolationBuilderInterface.php
@@ -89,13 +89,13 @@ public function setInvalidValue(mixed $invalidValue): static;
89
* Sets the number which determines how the plural form of the violation
90
* message is chosen when it is translated.
91
*
92
- * @param int|null $number The number for determining the plural form
+ * @param int $number The number for determining the plural form
93
94
* @return $this
95
96
* @see \Symfony\Contracts\Translation\TranslatorInterface::trans()
97
*/
98
- public function setPlural(?int $number): static;
+ public function setPlural(int $number): static;
99
100
/**
101
* Sets the violation code.
0 commit comments