andreossido / laravel-odbc

ODBC integration for Laravel framework
35 stars 29 forks source link

Not working with php8.* #17

Open kane-parker opened 3 years ago

kane-parker commented 3 years ago

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?

broomcms commented 3 years ago

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

broomcms commented 3 years ago

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 ;-)

kaneParker commented 3 years ago

@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.