-
Notifications
You must be signed in to change notification settings - Fork 4
PHP 8.4: E_STRICT constant deprecated #17
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -99,7 +99,8 @@ public static function handleError($errno, $errstr, $errfile, $errline) | |||||
| } | ||||||
| } | ||||||
|
|
||||||
| if ($errno == E_NOTICE || $errno == E_USER_NOTICE || $errno == E_STRICT) { | ||||||
| if ($errno == E_NOTICE || $errno == E_USER_NOTICE | ||||||
| || (PHP_VERSION_ID < 70400 && $errno == E_STRICT)) { | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Shouldn't the deprecation start with 8.4? not 7.4?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @glensc According to this, some functions already emit deprecation notice starting 7.4:
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. from the linked article:
but still the correct check would be |
||||||
| if (PHPUnit_Framework_Error_Notice::$enabled !== TRUE) { | ||||||
| return FALSE; | ||||||
| } | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alternatives:
single line:
multiline:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe the current one is clear enough and easy to understand.