-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Remove PHP<7 leftovers #22894
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 PHP<7 leftovers #22894
Conversation
37b31ab
to
ff80b2e
Compare
} finally { | ||
if (PHP_VERSION_ID < 70000 && false !== self::$previousErrorHandler) { | ||
restore_error_handler(); | ||
self::$previousErrorHandler = 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.
do we still need self::$previousErrorHandler
?
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.
no indeed, removed self::$errorHandler
and handleError()
which were unused also
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.
when was self::$previousErrorHandler set to something else than 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.
build failure unrelated |
@@ -17,7 +17,7 @@ | |||
|
|||
class JsonEncodeTest extends TestCase | |||
{ | |||
private $encoder; | |||
private $encode; |
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.
should probably be done in older branches too
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.
and we should rename to "encoder" everywhere also
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.
hmm, altough I find the name weird, the tested class is JsonEncode, not JsonEncoder
Thank you @chalasr. |
This PR was merged into the 4.0-dev branch. Discussion ---------- Remove PHP<7 leftovers | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Forgot while cleaning up Commits ------- f0147da Remove PHP < 7.1 leftovers
Forgot while cleaning up