Skip to content
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

Some errors deprecated from passing null to parameter #402

Open
reunite-ro opened this issue Sep 21, 2024 · 1 comment
Open

Some errors deprecated from passing null to parameter #402

reunite-ro opened this issue Sep 21, 2024 · 1 comment

Comments

@reunite-ro
Copy link

Environment

- PHP: 8.1
- MySQL: 10.5.26-MariaDB-0+deb11u2 - Debian 11

Current Behavior

Some errors depreciated from passing null to parameter

PHP Deprecated:  number_format(): Passing null to parameter #1 ($num) of type float is deprecated in /home/public_html/themes/default/monster/index.php on line 107
PHP Deprecated:  strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /home/public_html/lib/Flux/Template.php on line 1099
PHP Warning:  Undefined array key 1 in /home/public_html/lib/Flux/Template.php on line 325
PHP Deprecated:  urldecode(): Passing null to parameter #1 ($string) of type string is deprecated in /home/public_html/lib/Flux/Template.php on line 327
PHP Deprecated:  round(): Passing null to parameter #1 ($num) of type int|float is deprecated in /home/public_html/themes/default/item/view.php on line 53

These a lot of errors resulting of high disk usage just for the error logs.

Expected Behavior

No response

Steps To Reproduce

Run with the environment stated and see error logs.

Anything else?

No response

@reunite-ro reunite-ro changed the title Some errors depreciated from passing null to parameter Some errors deprecated from passing null to parameter Oct 12, 2024
@kalil-camera
Copy link

deprecation warning are not bugs. just add a null check with ternary operator (??'').

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants