( ! ) 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 |
# | Time | Memory | Function | Location |
1 | 0.0050 | 474592 | {main}( ) | ...\listar-cursos.php:0 |
2 | 0.3957 | 3870696 | Doctrine\ORM\EntityRepository->findAll( ) | ...\listar-cursos.php:6 |
3 | 0.3957 | 3870696 | Doctrine\ORM\EntityRepository->findBy( $criteria = [], $orderBy = ???, $limit = ???, $offset = ??? ) | ...\EntityRepository.php:164 |
4 | 0.4855 | 4290872 | Doctrine\ORM\Persisters\Entity\BasicEntityPersister->loadAll( $criteria = [], $orderBy = NULL, $limit = NULL, $offset = NULL ) | ...\EntityRepository.php:181 |
5 | 0.5343 | 4307328 | Doctrine\DBAL\Connection->executeQuery( $query = 'SELECT t0.id AS id_1, t0.descricao AS descricao_2 FROM cursos t0', $params = [], $types = [], $qcp = ??? ) | ...\BasicEntityPersister.php:904 |
6 | 0.5343 | 4307328 | Doctrine\DBAL\Connection->connect( ) | ...\Connection.php:889 |
7 | 0.5343 | 4307328 | Doctrine\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 |
8 | 0.5343 | 4307328 | Composer\Autoload\ClassLoader->loadClass( $class = 'Doctrine\\DBAL\\Driver\\PDOConnection' ) | ...\Driver.php:38 |
9 | 0.5344 | 4307488 | Composer\Autoload\includeFile( $file = 'G:\\Rede\\PHP\\aulas\\Alura\\gerencimento-cursos\\vendor\\composer/../doctrine/dbal/lib/Doctrine/DBAL\\Driver\\PDOConnection.php' ) | ...\ClassLoader.php:428 |
10 | 0.5352 | 4318712 | include( 'G:\Rede\PHP\aulas\Alura\gerencimento-cursos\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php ) | ...\ClassLoader.php:571 |