8000 [Form] Fix const inside an anonymous function · symfony/symfony@a37e5e3 · GitHub
[go: up one dir, main page]

Skip to content

Commit a37e5e3

Browse files
committed
[Form] Fix const inside an anonymous function
1 parent 74c8b01 commit a37e5e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Form/Extension/Core/Type/DateType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ public function setDefaultOptions(OptionsResolverInterface $resolver)
181181
};
182182

183183
$format = function (Options $options) {
184-
return $options['widget'] === 'single_text' ? self::HTML5_FORMAT : self::DEFAULT_FORMAT;
184+
return $options['widget'] === 'single_text' ? DateType::HTML5_FORMAT : DateType::DEFAULT_FORMAT;
185185
};
186186

187187
// BC until Symfony 2.3

0 commit comments

Comments
 (0)
0