-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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 deprecation of null arguments #15984
Comments
We definitely need to address these. I will try and get as much reporting as possible from our testing suite but that might not cover a lot of areas that could be problematic. Anything else you see @Deathamns please report it. I am going to address this one shortly. |
Resolved in #15985 Thank you @Deathamns |
Released in v5.0.0RC2 |
cphalcon/phalcon/Mvc/View/Engine/Volt.zep Lines 191 to 202 in b6e8688
|
Resolved in #16004 |
With the recent v5.0.0RC1 and PHP 8.1 I'm seeing entries in my log files about passing null parameters to built-in functions.
For example calling
Phalcon\Http\Request\getLanguages()
when theHTTP_ACCEPT_LANGUAGE
header is not present, I get messages such as:preg_split(): Passing null to parameter #2 ($subject) of type string is deprecated
cphalcon/phalcon/Http/Request.zep
Line 1404 in b6e8688
These deprecation messages might surface in other places as well, I've only noticed this specific case.
Passing null to non-nullable parameters of built-in functions
PHP 8.1 : Passing null to non-nullable arguments of internal functions is deprecated
The text was updated successfully, but these errors were encountered: