laravel-odbc icon indicating copy to clipboard operation
laravel-odbc copied to clipboard

Not working with php8.*

Open kane-parker opened this issue 3 years ago • 3 comments

I have installed the libraby as mentioned in the readme file, but not sure why I'm getting the non compatibility fatal error for pdo functions.

The error is Declaration of Abram\Odbc\ODBCPdoStatement::fetchAll($how = null, $class_name = null, $ctor_args = null) must be compatible with PDOStatement::fetchAll(int $mode = PDO::FETCH_BOTH, mixed ...$args)

Can you please help me to fix this?

kane-parker avatar Jun 21 '21 15:06 kane-parker

I got the same problem on my side... Did you find a way to resolve this?

broomcms avatar Jul 16 '21 22:07 broomcms

By the way, I solved this by using https://github.com/yoramdelangen/laravel-pdo-odbc

It's a fork of this repo and works like a charme ;-)

broomcms avatar Jul 17 '21 01:07 broomcms

@broomcms, I haven't found any solution for laravel-odbc library but I have installed the same library(laravel-pdo-odbc) and got the wheel turning.

kaneParker avatar Jul 19 '21 03:07 kaneParker