Skip to content

Commit 5c7184c

Browse files
committed
Merge branch '7.0' into 7.1
* 7.0: -
2 parents bd654a3 + 2e623aa commit 5c7184c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

validation/custom_constraint.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,12 +261,12 @@ define those options as public properties on the constraint class::
261261
$this->optionalBarOption = $optionalBarOption ?? $this->optionalBarOption;
262262
}
263263

264-
public function getDefaultOption()
264+
public function getDefaultOption(): string
265265
{
266266
return 'mandatoryFooOption';
267267
}
268268

269-
public function getRequiredOptions()
269+
public function getRequiredOptions(): array
270270
{
271271
return ['mandatoryFooOption'];
272272
}

0 commit comments

Comments
 (0)