Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Merged
merged 1 commit into from
May 25, 2017
Merged

Conversation

chalasr
Copy link
Member

@chalasr chalasr commented May 24, 2017

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

@chalasr chalasr force-pushed the php-7.1-removals branch 2 times, most recently from 37b31ab to ff80b2e Compare May 24, 2017 17:16
} finally {
if (PHP_VERSION_ID < 70000 && false !== self::$previousErrorHandler) {
restore_error_handler();
self::$previousErrorHandler = false;
Copy link
Member

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 ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no indeed, removed self::$errorHandlerand handleError() which were unused also

Copy link
Member

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chalasr chalasr force-pushed the php-7.1-removals branch from ff80b2e to f0147da Compare May 24, 2017 17:22
@chalasr
Copy link
Member Author

chalasr commented May 24, 2017

build failure unrelated

@@ -17,7 +17,7 @@

class JsonEncodeTest extends TestCase
{
private $encoder;
private $encode;
Copy link
Member

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

Copy link
Member

@nicolas-grekas nicolas-grekas May 25, 2017

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

Copy link
Member Author

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

@xabbuh xabbuh added this to the 4.0 milestone May 24, 2017
@nicolas-grekas
Copy link
Member

Thank you @chalasr.

@nicolas-grekas nicolas-grekas merged commit f0147da into symfony:master May 25, 2017
nicolas-grekas added a commit that referenced this pull request May 25, 2017
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
@chalasr chalasr deleted the php-7.1-removals branch May 25, 2017 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants