cakephp-oracle-driver icon indicating copy to clipboard operation
cakephp-oracle-driver copied to clipboard

Compatibility with CakePHP 4.5 (PHP-7.4)

Open alphp opened this issue 2 years ago • 2 comments

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

alphp avatar Oct 23 '23 10:10 alphp

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

gustacoutinho avatar Aug 20 '24 15:08 gustacoutinho

You can try the following solutions for CakePHP-4.5:

  • For PHP-7.4 #73:
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
  • For PHP-8.x #74:
composer config repositories.cakephp-oracle-driver git "https://github.com/alphp/cakephp-oracle-driver"
composer require cakedc/cakephp-oracle-driver dev-5.x-php-8.x

alphp avatar Aug 21 '24 08:08 alphp