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

Fix E_STRICT is deprecated. #939

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

kagg-design
Copy link

Description

With PHP 8.4, QM shows its own deprecation error in the console: "Constant E_STRICT is deprecated in C:\laragon\www\Projects\query-monitor\collectors\environment.php on line 64".

The current PR fixes the issue.

Copy link

@JJJ JJJ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks mergable to me 🙌

Opinion

I don't love switching to maintaining the E_ values like this, because the original approach of checking constant() is more precise, and that is my personal preference.

But I've also never seen anyone change the values of these constants, so it does seem like a comparison that is simplified as suggested.

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

Successfully merging this pull request may close these issues.

2 participants