-
-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP 8.1 show Warning reset(): Calling reset() on an object is deprecated #692
Comments
Thanks for reporting. I haven't had time to upgrade to 8.1 and still stuck with 7.4. If you can fix, please do not hesitate to submit a PR. |
Just to confirm, will this be combined with Laravel 9 support seeing as that is now released? |
@jamespavett Yes, any fixes on 8.x will be added on 9.x version if that is what you were referring to. Also, would you be able to help reviewing this PR: yajra/pdo-via-oci8#95 if it fixes the issue? |
Same issue here I have many deprecation logs for
It's maybe the solution, in line 690 & 691 you need to replace the
update to
Update:
Note: I did try both method to get raid of deprecation logs, I get same result with Please fix the issue and update the composer.json in Laravel OCI8 to use the last version of |
Fixed via yajra/pdo-via-oci8#104 - v3.2.3. Thanks! |
Summary of problem or feature request
Laravel debugbar show lots of LOG.warnings:
warning: Return type of Yajra\Pdo\Oci8\Statement::bindColumn($column, &$variable, $dataType = null, $maxLength = -1, $options = null) should either be compatible with PDOStatement::bindColumn(string|int $column, mixed &$var, int $type = PDO::PARAM_STR, int $maxLength = 0, mixed $driverOptions = null): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in ../vendor/yajra/laravel-pdo-via-oci8/src/Pdo/Oci8/Statement.php on line 223
warning: reset(): Calling reset() on an object is deprecated in ../vendor/yajra/laravel-pdo-via-oci8/src/Pdo/Oci8/Statement.php on line 650
I want no warning
Code snippet of problem
if ((is_array($row) || is_object($row)) && is_resource(reset($row))) {
System details
The text was updated successfully, but these errors were encountered: