Skip to content

Commit

Permalink
Define null return type for Constraint::getDefaultOption()
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaik Dean authored and fabpot committed Apr 5, 2019
1 parent 69058e3 commit 03987f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Symfony/Component/Validator/Constraint.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,12 +232,13 @@ public function addImplicitGroupName($group)
*
* Override this method to define a default option.
*
* @return string
* @return string|null
*
* @see __construct()
*/
public function getDefaultOption()
{
return null;
}

/**
Expand Down

0 comments on commit 03987f2

Please sign in to comment.