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

Remove usage of E_STRICT #11166

Open
wants to merge 1 commit into
base: 5.x
Choose a base branch
from
Open

Remove usage of E_STRICT #11166

wants to merge 1 commit into from

Conversation

edsrzf
Copy link
Contributor

@edsrzf edsrzf commented Nov 24, 2024

This constant is deprecated in PHP 8.4. All E_STRICT warnings were converted to E_NOTICE in PHP 8.0. See the RFC for full details.

Psalm 5 still supports PHP 7.4, so technically this constant could still be useful for people running it on that version, but I suspect most development and testing happens against 8.0+, and the few cases that apply to 7.4 are unlikely to matter to the Psalm code base. It doesn't seem worth more sophisticated PHP version detection in this code to me.

This constant is deprecated in PHP 8.4. All E_STRICT warnings were
converted to E_NOTICE in PHP 8.0.

Psalm 5 still supports PHP 7.4, so _technically_ this constant could
still be useful for people running it on that version, but I suspect
most development and testing happens against 8.0+. It doesn't seem worth
more complicated version detection in this code to me.
@edsrzf edsrzf mentioned this pull request Nov 25, 2024
5 tasks
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