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

Merged

Conversation

kagg-design
Copy link
Contributor

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.

@johnbillion johnbillion added this to the 3.17.1 milestone Feb 2, 2025
@johnbillion johnbillion merged commit f45f2d9 into johnbillion:develop Feb 2, 2025
34 checks passed
@johnbillion johnbillion linked an issue Feb 2, 2025 that may be closed by this pull request
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.

PHP 8.4: Constant E_STRICT is deprecated
3 participants