Skip to content

E_USER_ERROR is deprecated in PHP 8.4 #1754

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

Closed
wants to merge 1 commit into from
Closed

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Jun 23, 2025

see https://wiki.php.net/rfc/deprecations_php_8_4#deprecate_passing_e_user_error_to_trigger_error

technically this constant is not deprecated yet, but only its use with trigger_error.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@LolGleb
Copy link
Contributor

LolGleb commented Jun 24, 2025

Thank you for your PR!
From my understanding, the E_USER_ERROR constant itself is not being deprecated. Only its usage with trigger_error() is being deprecated. This distinction is important because the constant is still valid in other contexts.

In PhpStorm, this case is highlighted correctly: we show a deprecation warning only when E_USER_ERROR is passed to trigger_error().
image

@LolGleb LolGleb closed this Jun 24, 2025
@staabm staabm deleted the patch-1 branch June 24, 2025 09:01
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.

None yet

2 participants