CakeDC / cakephp-oracle-driver

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

Fatal error: Declaration of CakeDC\OracleDriver\Config\ConfigTrait::config($key = NULL, $value = NULL, $merge = true) must be compatible with Cake\Database\Driver::config(?string $key = NULL, $value = NULL, bool $merge = true): array in C:\xampp\htdocs\prontuariov4\vendor\cakedc\cakephp-oracle-driver\src\Database\Driver\OracleBase.php on line 75 #76

Open gustacoutinho opened 3 weeks ago

gustacoutinho commented 3 weeks ago

I am encountering a fatal error while using CakeDC\OracleDriver with CakePHP 4.5, PHP 7.4, and Oracle 21. The error message is as follows:

Fatal error: Declaration of CakeDC\OracleDriver\Config\ConfigTrait::config($key = NULL, $value = NULL, $merge = true) must be compatible with Cake\Database\Driver::config(?string $key = NULL, $value = NULL, bool $merge = true): array in C:\xampp\htdocs\prontuariov4\vendor\cakedc\cakephp-oracle-driver\src\Database\Driver\OracleBase.php on line 75 It seems there is a mismatch between the method signature in ConfigTrait and what is expected in the Cake\Database\Driver class.

I have checked that all versions are up to date, but I am still encountering this issue.

Can anyone help me understand what might be causing this error and how I can resolve it?