Fatal error: Declaration of Doctrine\Persistence\Mapping\StaticReflectionService::getParentClasses(string $class) must be compatible with Doctrine\Persistence\Mapping\ReflectionService::getParentClasses(string $class): array in /var/www/api/menubuilder/vendor/doctrine/persistence/src/Persistence/Mapping/StaticReflectionService.php on line 22
Compile Error: Declaration of Doctrine\Persistence\Mapping\StaticReflectionService::getParentClasses(string $class) must be compatible with Doctrine\Persistence\Mapping\ReflectionService::getParentClasses(string $class): array (500 Internal Server Error)

Symfony Exception

FatalError

HTTP 500 Internal Server Error

Compile Error: Declaration of Doctrine\Persistence\Mapping\StaticReflectionService::getParentClasses(string $class) must be compatible with Doctrine\Persistence\Mapping\ReflectionService::getParentClasses(string $class): array

Exception

Symfony\Component\ErrorHandler\Error\ FatalError

Show exception properties
Symfony\Component\ErrorHandler\Error\FatalError {#1050
  -error: array:4 [
    "type" => 64
    "message" => "Declaration of Doctrine\Persistence\Mapping\StaticReflectionService::getParentClasses(string $class) must be compatible with Doctrine\Persistence\Mapping\ReflectionService::getParentClasses(string $class): array"
    "file" => "/var/www/api/menubuilder/vendor/doctrine/persistence/src/Persistence/Mapping/StaticReflectionService.php"
    "line" => 22
  ]
}
  1. class StaticReflectionService implements ReflectionService
  2. {
  3. /**
  4. * {@inheritDoc}
  5. */
  6. public function getParentClasses(string $class)
  7. {
  8. return [];
  9. }
  10. /**

Stack Trace

FatalError
Symfony\Component\ErrorHandler\Error\FatalError:
Compile Error: Declaration of Doctrine\Persistence\Mapping\StaticReflectionService::getParentClasses(string $class) must be compatible with Doctrine\Persistence\Mapping\ReflectionService::getParentClasses(string $class): array

  at /var/www/api/menubuilder/vendor/doctrine/persistence/src/Persistence/Mapping/StaticReflectionService.php:22