Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarStark committed Apr 17, 2024
1 parent a89a290 commit 26f992d
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 @@ -265,12 +265,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 26f992d

Please sign in to comment.