CakeDC / cakephp-oracle-driver

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

Compatibility with CakePHP 4.5 (PHP-7.4) #73

Open alphp opened 11 months ago

alphp commented 11 months ago

Fot testing:

composer config repositories.cakephp-oracle-driver git "https://github.com/alphp/cakephp-oracle-driver"
composer require cakedc/cakephp-oracle-driver dev-5.x-cakephp-4.5
gustacoutinho commented 1 month ago

Can you help me? im facing this error when i try to connect my app to de oracle DB.

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

using cakephp 4.5 and oracle 21C

alphp commented 1 month ago

You can try the following solutions for CakePHP-4.5: