cakephp-oracle-driver
cakephp-oracle-driver copied to clipboard
Compatibility with CakePHP 4.5 (PHP-7.4)
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
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
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