Skip to content

Replace usage of deprecated E_STRICT constant#3705

Merged
nao-pon merged 2 commits intoStudio-42:masterfrom
jnoordsij:replace-estrict
Aug 28, 2025
Merged

Replace usage of deprecated E_STRICT constant#3705
nao-pon merged 2 commits intoStudio-42:masterfrom
jnoordsij:replace-estrict

Conversation

@jnoordsij
Copy link
Contributor

The E_STRICT constant is deprecated as of PHP 8.4.0 and will be removed in a future version; see also https://wiki.php.net/rfc/deprecations_php_8_4#remove_e_strict_error_level_and_deprecate_e_strict_constant.

This PR replaces the deprecated usage of E_STRICT by:

  • adding an error control operator to usages to silence deprecation warnings
  • ensuring a defined('E_STRICT') call is issued before trying to access to constant, to ensure compatibility with future PHP versions where this will be removed

@nao-pon nao-pon merged commit 2d718b5 into Studio-42:master Aug 28, 2025
1 check passed
@jnoordsij jnoordsij deleted the replace-estrict branch August 28, 2025 11:22
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