Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 03987f2

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

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎src/Symfony/Component/Validator/Constraint.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/Constraint.php
+2-1Lines changed: 2 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.