Skip to content

Commit

Permalink
Merge branch '7.0' into 7.1
Browse files Browse the repository at this point in the history
* 7.0:
  -
  • Loading branch information
OskarStark committed Apr 17, 2024
2 parents bd654a3 + 2e623aa commit 5c7184c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions validation/custom_constraint.rst
Original file line number Diff line number Diff line change
Expand Up @@ -261,12 +261,12 @@ define those options as public properties on the constraint class::
$this->optionalBarOption = $optionalBarOption ?? $this->optionalBarOption;
}

public function getDefaultOption()
public function getDefaultOption(): string
{
return 'mandatoryFooOption';
}

public function getRequiredOptions()
public function getRequiredOptions(): array
{
return ['mandatoryFooOption'];
}
Expand Down

0 comments on commit 5c7184c

Please sign in to comment.