[Form] Fix const inside an anonymous function
This commit is contained in:
parent
74c8b0150a
commit
a37e5e323b
@ -181,7 +181,7 @@ class DateType extends AbstractType
|
|||||||
};
|
};
|
||||||
|
|
||||||
$format = function (Options $options) {
|
$format = function (Options $options) {
|
||||||
return $options['widget'] === 'single_text' ? self::HTML5_FORMAT : self::DEFAULT_FORMAT;
|
return $options['widget'] === 'single_text' ? DateType::HTML5_FORMAT : DateType::DEFAULT_FORMAT;
|
||||||
};
|
};
|
||||||
|
|
||||||
// BC until Symfony 2.3
|
// BC until Symfony 2.3
|
||||||
|
Reference in New Issue
Block a user