Fatal error: Cannot use Symfony\Component\Form\Extension\Core\Type\ChoiceType as ChoiceType because the name is already in use in /home/cimefinternation/public_html/src/Form/ContactFormType.php on line 21
Compile Error: Cannot use Symfony\Component\Form\Extension\Core\Type\ChoiceType as ChoiceType because the name is already in use (500 Internal Server Error)

Symfony Exception

FatalError

HTTP 500 Internal Server Error

Compile Error: Cannot use Symfony\Component\Form\Extension\Core\Type\ChoiceType as ChoiceType because the name is already in use

Exception

Symfony\Component\ErrorHandler\Error\ FatalError

  1. // use Symfony\Component\OptionsResolver\OptionsResolver;
  2. use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
  3. use Symfony\Component\Form\Extension\Core\Type\EmailType;
  4. use Symfony\Component\Form\Extension\Core\Type\TextType;
  5. use Symfony\Component\Form\Extension\Core\Type\SubmitType;
  6. use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
  7. use Symfony\Component\Form\Extension\Core\Type\TextareaType;
  8. class ContactFormType extends AbstractType
  9. {

Stack Trace

FatalError
Symfony\Component\ErrorHandler\Error\FatalError:
Compile Error: Cannot use Symfony\Component\Form\Extension\Core\Type\ChoiceType as ChoiceType because the name is already in use

  at /home/cimefinternation/public_html/src/Form/ContactFormType.php:21