( ! ) Fatal error: Declaration of Doctrine\DBAL\Driver\PDOConnection::query() must be compatible with PDO::query(string $query, ?int $fetchMode = null, mixed ...$fetchModeArgs): PDOStatement|false in G:\Rede\PHP\aulas\Alura\gerencimento-cursos\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php on line 70
Call Stack
#TimeMemoryFunctionLocation
10.0050474592{main}( )...\listar-cursos.php:0
20.39573870696Doctrine\ORM\EntityRepository->findAll( )...\listar-cursos.php:6
30.39573870696Doctrine\ORM\EntityRepository->findBy( $criteria = [], $orderBy = ???, $limit = ???, $offset = ??? )...\EntityRepository.php:164
40.48554290872Doctrine\ORM\Persisters\Entity\BasicEntityPersister->loadAll( $criteria = [], $orderBy = NULL, $limit = NULL, $offset = NULL )...\EntityRepository.php:181
50.53434307328Doctrine\DBAL\Connection->executeQuery( $query = 'SELECT t0.id AS id_1, t0.descricao AS descricao_2 FROM cursos t0', $params = [], $types = [], $qcp = ??? )...\BasicEntityPersister.php:904
60.53434307328Doctrine\DBAL\Connection->connect( )...\Connection.php:889
70.53434307328Doctrine\DBAL\Driver\PDOSqlite\Driver->connect( $params = ['driver' => 'pdo_sqlite', 'path' => 'G:\\Rede\\PHP\\aulas\\Alura\\gerencimento-cursos\\src\\Infra/../../db.sqlite'], $username = NULL, $password = NULL, $driverOptions = [] )...\Connection.php:356
80.53434307328Composer\Autoload\ClassLoader->loadClass( $class = 'Doctrine\\DBAL\\Driver\\PDOConnection' )...\Driver.php:38
90.53444307488Composer\Autoload\includeFile( $file = 'G:\\Rede\\PHP\\aulas\\Alura\\gerencimento-cursos\\vendor\\composer/../doctrine/dbal/lib/Doctrine/DBAL\\Driver\\PDOConnection.php' )...\ClassLoader.php:428
100.53524318712include( 'G:\Rede\PHP\aulas\Alura\gerencimento-cursos\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php )...\ClassLoader.php:571