CakeDC / cakephp-oracle-driver

CakePHP 3 Driver for Oracle Database
Other
40 stars 24 forks source link

Declaration of CakeDC\OracleDriver\Database\OracleConnection must be compatible with Cake\Database\Connection #45

Closed linaresamado88 closed 2 years ago

linaresamado88 commented 4 years ago

Fatal error: Declaration of CakeDC\OracleDriver\Database\OracleConnection::cacheMetadata($cache) must be compatible with Cake\Database\Connection::cacheMetadata($cache): void in /var/www/html/qreport_v2/vendor/cakedc/cakephp-oracle-driver/src/Database/OracleConnection.php on line 22

skie commented 4 years ago

Can you note what app version do you saying about?

linaresamado88 commented 4 years ago

CakePHP 4.0.7

ualisonaguiar commented 3 years ago

Good afternoon. I'm using cakephp in version 4.1.0 when trying to establish a connection returns the error message: Fatal error: Declaration of CakeDC\OracleDriver\Database\OracleConnection::cacheMetadata($cache) must be compatible with Cake\Database\Connection::cacheMetadata($cache): void in /vendor/cakedc/cakephp-oracle-driver/src/Database/OracleConnection.php on line 22.

I changed the cakephp version to 4.0.7 the error remains.

Can someone help me?

Here is the code used:

    $connection = \Cake\Datasource\ConnectionManager::get('Teste');
    debug($connection);
    die;

Thank you

ualisonaguiar commented 3 years ago

Good morning error resolved in version 5.0.

Thanks.