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

PHPCS 3.x compat: remove php 5.2 work arounds and PHP 5.2 specific code #1050

Merged
merged 3 commits into from
Jul 25, 2017

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Jul 25, 2017

This PR is part of the PHPCS 3.x compatibility PR series.

See the individual commits for more details. These have been set up for easy review.

@jrfnl jrfnl added this to the 0.13.0 milestone Jul 25, 2017
@jrfnl jrfnl mentioned this pull request Jul 25, 2017
@@ -67,18 +61,7 @@ public function getErrorList( $testFile = 'PrefixAllGlobalsUnitTest.inc' ) {

case 'PrefixAllGlobalsUnitTest.1.inc':
Copy link
Member

Choose a reason for hiding this comment

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

This case could simply fall through to the default. No need for a separate return array().

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point. Fixed

jrfnl and others added 2 commits July 25, 2017 10:12
Includes removal of two secondary test case files which were a work-around for unrecognized syntaxes in PHP 5.2.
This should also allow the unit tests to pass against on PHP nightly.
@jrfnl jrfnl force-pushed the WPCS-0.13.0/feature/remove-php-5.2-work-arounds branch from 69ba4bb to 15307be Compare July 25, 2017 08:13
@JDGrimes JDGrimes merged commit b05a639 into develop Jul 25, 2017
@JDGrimes JDGrimes deleted the WPCS-0.13.0/feature/remove-php-5.2-work-arounds branch July 25, 2017 13:08
@jrfnl
Copy link
Member Author

jrfnl commented Jul 25, 2017

FYI: now this PR is merged, the builds for PHP nightly will start to pass (were failing on a create_function is deprecated since PHP 7.2 notice)

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.

3 participants