yajra / pdo-via-oci8

PHP PDO_OCI functions via OCI8 extension
Other
88 stars 61 forks source link

PHP 8.1 Support #109

Closed fagundes closed 2 years ago

fagundes commented 2 years ago

When trying to use the lib in php 8.1 I'm getting the following error:


Trace:
#0 .../vendor/yajra/laravel-pdo-via-oci8/src/Pdo/Oci8/Statement.php(690): get_mangled_object_vars(Array)

...

Exception: get_mangled_object_vars(): Argument #1 ($object) must be of type object, array given

Summary of problem or feature request

Argument must be object type in get_mangled_object_vars.

Possible fix is cast to object, like so:

 $mangledObj = get_mangled_object_vars((object)$row);

System details

yajra commented 2 years ago

Thanks for reporting, fixed on v3.2.4