[BUG]: \Phalcon\Db\Adapter\AdapterInterface::getInternalHandler expects \PDO #15119
Labels
5.0
The issues we want to solve in the 5.0 release
breaks bc
Functionality that breaks Backwards Compatibility
bug
A bug report
status: medium
Medium
Describe the bug
We have implemented custom elasticsearch adapter using AdapterInterface from phalcon, we had a return of Elastisearch client in
getInternalHandler
method, but since phalcon 4 return type of it is now \PDO, though whole adapter isn't really in any PDO related namespace https://github.com/phalcon/cphalcon/blob/master/phalcon/Db/Adapter/AdapterInterface.zep#L226.To Reproduce
Implement interface and try to return something else.
Expected behavior
Allow implementing this interface without returning \PDO or implementing this method. Either move it to \Phalcon\Db\Adapter\Pdo or remove it at all.
Details
The text was updated successfully, but these errors were encountered: