-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
A simple incompability with php 8.1 #1284
Comments
Can you create a PR? |
What is your input, why is the binding |
Hello, I don't think I know enough about the project technically to create a pull request. A first error occurs in QueryCollector.php line 163 because quote method does not allow a null value. I think it would take a simple nullity check of $binding, soit au niveau de la ligne 160 avec Or at the str_replace line 214, this is also to be confirmed with the behavior before PHP 8.1. To answer your question, my input is null following the validation of a form, one of my fields is not mandatory and is empty, so the value remained null. My input is just an empty textarea, a description that remained null in the form. Have a good day ! |
I have these error logged into storage/logs folder, Laravel 8.x with php 8.1
I have enabled the logger in this way
|
So bafb390 ? |
Hello, i've found an error here :
str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
You'll find the concerned method here : vendor/barryvdh/laravel-debugbar/src/DataCollector/QueryCollector.php
Function name : emulateQuote
Line : 214.
My PHP version is 8.1, this error is due to the recent changes on the acceptance of null values on native PHP methods.
Have a good fix !
The text was updated successfully, but these errors were encountered: