diff --git a/src/Doctrine/EntityDetails.php b/src/Doctrine/EntityDetails.php index 76b44c383..dfd46ba25 100644 --- a/src/Doctrine/EntityDetails.php +++ b/src/Doctrine/EntityDetails.php @@ -13,8 +13,6 @@ use Doctrine\Persistence\Mapping\ClassMetadata; use Symfony\Bridge\Doctrine\Form\Type\EntityType; -use Symfony\Bundle\MakerBundle\Tests\Doctrine\DoctrineHelperTest; -use Symfony\Component\Form\Extension\Core\Type\DateType; /** * @author Sadicov Vladimir @@ -65,12 +63,11 @@ public function getFormFields(): array foreach ($this->metadata->fieldMappings as $fieldName => $fieldMapping) { $propType = DoctrineHelper::getPropertyTypeForColumn($fieldMapping['type']); - if (($propType === '\\' . \DateTimeImmutable::class) || - ($propType === '\\' . \DateTimeInterface::class)) - { + if (($propType === '\\'.\DateTimeImmutable::class) + || ($propType === '\\'.\DateTimeInterface::class)) { $fieldsWithTypes[$fieldName] = [ 'type' => null, - 'options_code' => "'widget' => 'single_text'" + 'options_code' => "'widget' => 'single_text'", ]; } }