Fatal error: Cannot declare class App\Form\FilterConstructionType, because the name is already in use in /home9/catalaogogov/public_html/producao/src/Form/FilterConstrutionType.php on line 15
Compile Error: Cannot declare class App\Form\FilterConstructionType, because the name is already in use (500 Internal Server Error)

Symfony Exception

FatalError

HTTP 500 Internal Server Error

Compile Error: Cannot declare class App\Form\FilterConstructionType, because the name is already in use

Exception

Symfony\Component\ErrorHandler\Error\ FatalError

  1. use Symfony\Component\Form\Extension\Core\Type\SearchType;
  2. use Symfony\Component\Form\FormBuilderInterface;
  3. use Symfony\Component\OptionsResolver\OptionsResolver;
  4. class FilterConstructionType extends AbstractType
  5. {
  6.     public function buildForm(FormBuilderInterface $builder, array $options): void
  7.     {
  8.         $builder
  9.             ->add('search',SearchType::class, [

Stack Trace

FatalError
Symfony\Component\ErrorHandler\Error\FatalError:
Compile Error: Cannot declare class App\Form\FilterConstructionType, because the name is already in use

  at /home9/catalaogogov/public_html/producao/src/Form/FilterConstrutionType.php:15