Skip to content

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

@gustacoutinho

Description

@gustacoutinho

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions