Symfony Exception

FatalErrorException

HTTP 500 Internal Server Error

Compile Error: Declaration of Doctrine\DBAL\Driver\PDOConnection::query() must be compatible with PDO::query(string $query, ?int $fetchMode = null, mixed ...$fetchModeArgs): PDOStatement|false

Exception

Symfony\Component\Debug\Exception\ FatalErrorException

  1.     }
  2.     /**
  3.      * {@inheritdoc}
  4.      */
  5.     public function query()
  6.     {
  7.         $args      func_get_args();
  8.         $argsCount count($args);
  9.         try {

Logs

No log messages

Stack Trace

FatalErrorException

Symfony\Component\Debug\Exception\FatalErrorException:
Compile Error: Declaration of Doctrine\DBAL\Driver\PDOConnection::query() must be compatible with PDO::query(string $query, ?int $fetchMode = null, mixed ...$fetchModeArgs): PDOStatement|false

  at vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:70