diff --git a/.travis.yml b/.travis.yml index 2588c77..1ae07fd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,6 @@ env: before_script: - curl -s http://getcomposer.org/installer | php - - php composer.phar install + - php -d memory_limit=-1 composer.phar install script: phpunit diff --git a/Form/Type/DatetimeType.php b/Form/Type/DatetimeType.php index be802aa..eb58415 100644 --- a/Form/Type/DatetimeType.php +++ b/Form/Type/DatetimeType.php @@ -159,7 +159,11 @@ public static function convertMalotToIntlFormater($formatter) */ public function getParent() { - return \Symfony\Component\Form\Extension\Core\Type\DateTimeType::class; + if (method_exists('Symfony\Component\Form\AbstractType', 'getBlockPrefix')) { + return '\Symfony\Component\Form\Extension\Core\Type\DateTimeType'; + } + + return 'datetime'; } public function getName()