Fatal error: Declaration of App\Client\Repository\ClientContactRepository::getFieldTypes() must be compatible with App\Base\Repository\BaseRepository::getFieldTypes(): array in /app/service/src/Client/Repository/ClientContactRepository.php on line 17
Compile Error: Declaration of App\Client\Repository\ClientContactRepository::getFieldTypes() must be compatible with App\Base\Repository\BaseRepository::getFieldTypes(): array (500 Internal Server Error)

Symfony Exception

FatalError

HTTP 500 Internal Server Error

Compile Error: Declaration of App\Client\Repository\ClientContactRepository::getFieldTypes() must be compatible with App\Base\Repository\BaseRepository::getFieldTypes(): array

Exception

Symfony\Component\ErrorHandler\Error\ FatalError

  1.     public function __construct(ManagerRegistry $registry)
  2.     {
  3.         parent::__construct($registry, ClientContact::class);
  4.     }
  5.     
  6.     public function getFieldTypes()
  7.     {
  8.         return [
  9.             'id' => 'integer',
  10.             'client_id' => 'integer',
  11.             'name' => 'string',

Stack Trace

FatalError
Symfony\Component\ErrorHandler\Error\FatalError:
Compile Error: Declaration of App\Client\Repository\ClientContactRepository::getFieldTypes() must be compatible with App\Base\Repository\BaseRepository::getFieldTypes(): array

  at /app/service/src/Client/Repository/ClientContactRepository.php:17