-
Notifications
You must be signed in to change notification settings - Fork 22
fix: resolve warnings in php 8 #56
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
base: trunk
Are you sure you want to change the base?
Conversation
Resolves the following warnings when upgrading to PHP 8: - compact(): Undefined variable $server in db.php on line 722 - Undefined variable $server in db.php on line 726
I’m assuming there’s a better default for this than |
@rinatkhaziev could you please take a look as well? |
@heyjones could you please provide steps to reproduce the issue? I'm not able to trigger the behavior you describe on a regular request. |
@rinatkhaziev here are the constants in my
They match locally since I only have one db, but in prod they vary. I see this error in wp-admin:
When applying the code in this PR, the warning is removed. I'm open to suggestions for a better solution, or since I don't have |
When I tail my logs locally, I do see several instances of this error:
|
Kudos, SonarCloud Quality Gate passed!
|
Resolves the following warnings when upgrading to PHP 8: