Skip to content

Commit 03987f2

Browse files
Jaik Deanfabpot
Jaik Dean
authored andcommitted
Define null return type for Constraint::getDefaultOption()
1 parent 69058e3 commit 03987f2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Component/Validator/Constraint.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -232,12 +232,13 @@ public function addImplicitGroupName($group)
232232
*
233233
* Override this method to define a default option.
234234
*
235-
* @return string
235+
* @return string|null
236236
*
237237
* @see __construct()
238238
*/
239239
public function getDefaultOption()
240240
{
241+
return null;
241242
}
242243

243244
/**

0 commit comments

Comments
 (0)