diff --git a/.travis.yml b/.travis.yml index e1619e4..bc1e150 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,7 @@ php: - 7.1 - 7.2 - 7.3 + - 7.4 env: - WP_VERSION=latest - WP_VERSION=4.5 @@ -30,12 +31,17 @@ matrix: env: WP_VERSION=5.2 WP_MULTISITE=1 - php: 7.3 env: WP_VERSION=latest WP_MULTISITE=1 - - php: 7.3 + - php: 7.4 + env: WP_VERSION=5.3 WP_MULTISITE=1 + - php: 7.4 + env: WP_VERSION=latest WP_MULTISITE=1 + - php: 7.4 env: NPM_TESTS=1 exclude: - php: 7.3 env: WP_VERSION=4.5 - + - php: 7.4 + env: WP_VERSION=4.5 before_script: - | diff --git a/composer.json b/composer.json index c72163d..58dc3cf 100644 --- a/composer.json +++ b/composer.json @@ -7,8 +7,8 @@ "email": "jason@stallin.gs" }], "require": { - "squizlabs/php_codesniffer": "^2.9.2", - "dealerdirect/phpcodesniffer-composer-installer": "^0.4.4", + "squizlabs/php_codesniffer": "^3.5.0", + "dealerdirect/phpcodesniffer-composer-installer": "^0.6.2", "phpcompatibility/phpcompatibility-wp": "^2" }, "require-dev": { diff --git a/composer.lock b/composer.lock index 5d9f8db..0cb0d0b 100644 --- a/composer.lock +++ b/composer.lock @@ -1,37 +1,34 @@ { "_readme": [ "This file locks the dependencies of your project to a known state", - "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "hash": "6f3f111cee87df2a6b762e6eeade451e", - "content-hash": "444578a8dfe80cf6550e1434f655d2e6", + "content-hash": "5c277c525c198f095620837c20bbdc52", "packages": [ { "name": "dealerdirect/phpcodesniffer-composer-installer", - "version": "v0.4.4", + "version": "v0.6.2", "source": { "type": "git", "url": "https://github.com/Dealerdirect/phpcodesniffer-composer-installer.git", - "reference": "2e41850d5f7797cbb1af7b030d245b3b24e63a08" + "reference": "8001af8eb107fbfcedc31a8b51e20b07d85b457a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Dealerdirect/phpcodesniffer-composer-installer/zipball/2e41850d5f7797cbb1af7b030d245b3b24e63a08", - "reference": "2e41850d5f7797cbb1af7b030d245b3b24e63a08", + "url": "https://api.github.com/repos/Dealerdirect/phpcodesniffer-composer-installer/zipball/8001af8eb107fbfcedc31a8b51e20b07d85b457a", + "reference": "8001af8eb107fbfcedc31a8b51e20b07d85b457a", "shasum": "" }, "require": { "composer-plugin-api": "^1.0", "php": "^5.3|^7", - "squizlabs/php_codesniffer": "*" + "squizlabs/php_codesniffer": "^2|^3" }, "require-dev": { "composer/composer": "*", - "wimg/php-compatibility": "^8.0" - }, - "suggest": { - "dealerdirect/qa-tools": "All the PHP QA tools you'll need" + "phpcompatibility/php-compatibility": "^9.0", + "sensiolabs/security-checker": "^4.1.0" }, "type": "composer-plugin", "extra": { @@ -49,13 +46,13 @@ "authors": [ { "name": "Franck Nijhof", - "email": "f.nijhof@dealerdirect.nl", - "homepage": "http://workingatdealerdirect.eu", - "role": "Developer" + "email": "franck.nijhof@dealerdirect.com", + "homepage": "http://www.frenck.nl", + "role": "Developer / IT Manager" } ], "description": "PHP_CodeSniffer Standards Composer Installer Plugin", - "homepage": "http://workingatdealerdirect.eu", + "homepage": "http://www.dealerdirect.com", "keywords": [ "PHPCodeSniffer", "PHP_CodeSniffer", @@ -73,20 +70,20 @@ "stylecheck", "tests" ], - "time": "2017-12-06 16:27:17" + "time": "2020-01-29T20:22:20+00:00" }, { "name": "phpcompatibility/php-compatibility", - "version": "9.2.0", + "version": "9.3.5", "source": { "type": "git", "url": "https://github.com/PHPCompatibility/PHPCompatibility.git", - "reference": "3db1bf1e28123fd574a4ae2e9a84072826d51b5e" + "reference": "9fb324479acf6f39452e0655d2429cc0d3914243" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibility/zipball/3db1bf1e28123fd574a4ae2e9a84072826d51b5e", - "reference": "3db1bf1e28123fd574a4ae2e9a84072826d51b5e", + "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibility/zipball/9fb324479acf6f39452e0655d2429cc0d3914243", + "reference": "9fb324479acf6f39452e0655d2429cc0d3914243", "shasum": "" }, "require": { @@ -109,10 +106,6 @@ "LGPL-3.0-or-later" ], "authors": [ - { - "name": "Contributors", - "homepage": "https://github.com/PHPCompatibility/PHPCompatibility/graphs/contributors" - }, { "name": "Wim Godden", "homepage": "https://github.com/wimg", @@ -122,6 +115,10 @@ "name": "Juliette Reinders Folmer", "homepage": "https://github.com/jrfnl", "role": "lead" + }, + { + "name": "Contributors", + "homepage": "https://github.com/PHPCompatibility/PHPCompatibility/graphs/contributors" } ], "description": "A set of sniffs for PHP_CodeSniffer that checks for PHP cross-version compatibility.", @@ -131,30 +128,32 @@ "phpcs", "standards" ], - "time": "2019-06-27 19:58:56" + "time": "2019-12-27T09:44:58+00:00" }, { "name": "phpcompatibility/phpcompatibility-paragonie", - "version": "1.0.1", + "version": "1.3.0", "source": { "type": "git", "url": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie.git", - "reference": "9160de79fcd683b5c99e9c4133728d91529753ea" + "reference": "b862bc32f7e860d0b164b199bd995e690b4b191c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityParagonie/zipball/9160de79fcd683b5c99e9c4133728d91529753ea", - "reference": "9160de79fcd683b5c99e9c4133728d91529753ea", + "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityParagonie/zipball/b862bc32f7e860d0b164b199bd995e690b4b191c", + "reference": "b862bc32f7e860d0b164b199bd995e690b4b191c", "shasum": "" }, "require": { "phpcompatibility/php-compatibility": "^9.0" }, "require-dev": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.4.4" + "dealerdirect/phpcodesniffer-composer-installer": "^0.5", + "paragonie/random_compat": "dev-master", + "paragonie/sodium_compat": "dev-master" }, "suggest": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.4.4 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.", + "dealerdirect/phpcodesniffer-composer-installer": "^0.5 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.", "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues." }, "type": "phpcodesniffer-standard", @@ -181,20 +180,20 @@ "polyfill", "standards" ], - "time": "2018-12-16 19:10:44" + "time": "2019-11-04T15:17:54+00:00" }, { "name": "phpcompatibility/phpcompatibility-wp", - "version": "2.0.0", + "version": "2.1.0", "source": { "type": "git", "url": "https://github.com/PHPCompatibility/PHPCompatibilityWP.git", - "reference": "cb303f0067cd5b366a41d4fb0e254fb40ff02efd" + "reference": "41bef18ba688af638b7310666db28e1ea9158b2f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityWP/zipball/cb303f0067cd5b366a41d4fb0e254fb40ff02efd", - "reference": "cb303f0067cd5b366a41d4fb0e254fb40ff02efd", + "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityWP/zipball/41bef18ba688af638b7310666db28e1ea9158b2f", + "reference": "41bef18ba688af638b7310666db28e1ea9158b2f", "shasum": "" }, "require": { @@ -202,10 +201,10 @@ "phpcompatibility/phpcompatibility-paragonie": "^1.0" }, "require-dev": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.4.3" + "dealerdirect/phpcodesniffer-composer-installer": "^0.5" }, "suggest": { - "dealerdirect/phpcodesniffer-composer-installer": "^0.4.3 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.", + "dealerdirect/phpcodesniffer-composer-installer": "^0.5 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.", "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues." }, "type": "phpcodesniffer-standard", @@ -231,68 +230,41 @@ "standards", "wordpress" ], - "time": "2018-10-07 18:31:37" + "time": "2019-08-28T14:22:28+00:00" }, { "name": "squizlabs/php_codesniffer", - "version": "2.9.2", + "version": "3.5.4", "source": { "type": "git", "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", - "reference": "2acf168de78487db620ab4bc524135a13cfe6745" + "reference": "dceec07328401de6211037abbb18bda423677e26" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/2acf168de78487db620ab4bc524135a13cfe6745", - "reference": "2acf168de78487db620ab4bc524135a13cfe6745", + "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/dceec07328401de6211037abbb18bda423677e26", + "reference": "dceec07328401de6211037abbb18bda423677e26", "shasum": "" }, "require": { "ext-simplexml": "*", "ext-tokenizer": "*", "ext-xmlwriter": "*", - "php": ">=5.1.2" + "php": ">=5.4.0" }, "require-dev": { - "phpunit/phpunit": "~4.0" + "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0" }, "bin": [ - "scripts/phpcs", - "scripts/phpcbf" + "bin/phpcs", + "bin/phpcbf" ], "type": "library", "extra": { "branch-alias": { - "dev-master": "2.x-dev" + "dev-master": "3.x-dev" } }, - "autoload": { - "classmap": [ - "CodeSniffer.php", - "CodeSniffer/CLI.php", - "CodeSniffer/Exception.php", - "CodeSniffer/File.php", - "CodeSniffer/Fixer.php", - "CodeSniffer/Report.php", - "CodeSniffer/Reporting.php", - "CodeSniffer/Sniff.php", - "CodeSniffer/Tokens.php", - "CodeSniffer/Reports/", - "CodeSniffer/Tokenizers/", - "CodeSniffer/DocGenerators/", - "CodeSniffer/Standards/AbstractPatternSniff.php", - "CodeSniffer/Standards/AbstractScopeSniff.php", - "CodeSniffer/Standards/AbstractVariableSniff.php", - "CodeSniffer/Standards/IncorrectPatternException.php", - "CodeSniffer/Standards/Generic/Sniffs/", - "CodeSniffer/Standards/MySource/Sniffs/", - "CodeSniffer/Standards/PEAR/Sniffs/", - "CodeSniffer/Standards/PSR1/Sniffs/", - "CodeSniffer/Standards/PSR2/Sniffs/", - "CodeSniffer/Standards/Squiz/Sniffs/", - "CodeSniffer/Standards/Zend/Sniffs/" - ] - }, "notification-url": "https://packagist.org/downloads/", "license": [ "BSD-3-Clause" @@ -304,12 +276,12 @@ } ], "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.", - "homepage": "http://www.squizlabs.com/php-codesniffer", + "homepage": "https://github.com/squizlabs/PHP_CodeSniffer", "keywords": [ "phpcs", "standards" ], - "time": "2018-11-07 22:31:41" + "time": "2020-01-30T22:20:29+00:00" } ], "packages-dev": [ @@ -354,7 +326,7 @@ "standards", "wordpress" ], - "time": "2018-12-18 09:43:51" + "time": "2018-12-18T09:43:51+00:00" } ], "aliases": [], diff --git a/readme.md b/readme.md index e0ef2fa..7cc42c0 100644 --- a/readme.md +++ b/readme.md @@ -1,9 +1,9 @@ # PHP Compatibility Checker -**Contributors:** [wpengine](https://profiles.wordpress.org/wpengine), [octalmage](https://profiles.wordpress.org/octalmage), [stevenkword](https://profiles.wordpress.org/stevenkword), [Taylor4484](https://profiles.wordpress.org/Taylor4484), [pross](https://profiles.wordpress.org/pross), [jcross](https://profiles.wordpress.org/jcross) +**Contributors:** [wpengine](https://profiles.wordpress.org/wpengine), [octalmage](https://profiles.wordpress.org/octalmage), [stevenkword](https://profiles.wordpress.org/stevenkword), [Taylor4484](https://profiles.wordpress.org/Taylor4484), [pross](https://profiles.wordpress.org/pross), [jcross](https://profiles.wordpress.org/jcross), [shooper](https://profiles.wordpress.org/shooper) **Tags:** php 7, php 5.5, php, version, compatibility, checker, wp engine, wpe, wpengine **Requires at least:** 3.5 -**Tested up to:** 5.2.2 -**Stable tag:** 1.5.0 +**Tested up to:** 5.3.0 +**Stable tag:** 1.6.0 **License:** GPLv2 or later **License URI:** http://www.gnu.org/licenses/gpl-2.0.html @@ -21,11 +21,11 @@ This plugin will lint theme and plugin code inside your WordPress file system an **This plugin relies on WP-Cron to scan files in the background. The scan will get stuck if the site's WP-Cron isn't running correctly. Please see the [FAQ](https://wordpress.org/plugins/php-compatibility-checker/faq/) for more information.** -### Update to PHP 7.3 ### -* Use this plugin to check your site for compatibility up to PHP 7.3! -* As of [July 2019](https://wordpress.org/about/stats/), 20.1% of WordPress websites run a PHP version older than PHP 5.6. +### Update to PHP 7.4 ### +* Use this plugin to check your site for compatibility up to PHP 7.4! +* As of [November 2019](https://wordpress.org/about/stats/), 12.9% of WordPress websites run a PHP version older than PHP 5.6. * These versions of PHP have been [deprecated and unsupported](https://secure.php.net/supported-versions.php) for over 2 years. -* Only 54.1% of WordPress websites run PHP 7, the current main version of PHP. +* Only 63.1% of WordPress websites run PHP 7, the current main version of PHP. ### Disclaimer ### @@ -64,7 +64,7 @@ PHP Compatibility Checker includes WP-CLI command support: - active - all -Example: `wp phpcompat 7.2 --scan=active` +Example: `wp phpcompat 7.4 --scan=active` ## Frequently Asked Questions ## @@ -117,6 +117,9 @@ To disclose security issues for this plugin please email WordPress@wpengine.com ## Changelog ## +### 1.6.0 ### +- Added support for PHP 7.4 compatibility checks + ### 1.5.0 ### - Added support for PHP 7.3 compatibility checks diff --git a/readme.txt b/readme.txt index bc55182..ca12a01 100755 --- a/readme.txt +++ b/readme.txt @@ -1,9 +1,9 @@ === PHP Compatibility Checker === -Contributors: wpengine, octalmage, stevenkword, Taylor4484, pross, jcross +Contributors: wpengine, octalmage, stevenkword, Taylor4484, pross, jcross, shooper Tags: php 7, php 5.5, php, version, compatibility, checker, wp engine, wpe, wpengine Requires at least: 3.5 -Tested up to: 5.2.2 -Stable tag: 1.5.0 +Tested up to: 5.3.0 +Stable tag: 1.6.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -21,11 +21,11 @@ This plugin will lint theme and plugin code inside your WordPress file system an **This plugin relies on WP-Cron to scan files in the background. The scan will get stuck if the site's WP-Cron isn't running correctly. Please see the [FAQ](https://wordpress.org/plugins/php-compatibility-checker/faq/) for more information.** -= Update to PHP 7.3 = -* Use this plugin to check your site for compatibility up to PHP 7.3! -* As of [July 2019](https://wordpress.org/about/stats/), 20.1% of WordPress websites run a PHP version older than PHP 5.6. += Update to PHP 7.4 = +* Use this plugin to check your site for compatibility up to PHP 7.4! +* As of [November 2019](https://wordpress.org/about/stats/), 12.9% of WordPress websites run a PHP version older than PHP 5.6. * These versions of PHP have been [deprecated and unsupported](https://secure.php.net/supported-versions.php) for over 2 years. -* Only 54.1% of WordPress websites run PHP 7, the current main version of PHP. +* Only 63.1% of WordPress websites run PHP 7, the current main version of PHP. = Disclaimer = @@ -64,7 +64,7 @@ PHP Compatibility Checker includes WP-CLI command support: - active - all ` -Example: `wp phpcompat 7.2 --scan=active` +Example: `wp phpcompat 7.4 --scan=active` == Frequently Asked Questions == @@ -113,6 +113,9 @@ To disclose security issues for this plugin please email WordPress@wpengine.com 2. Compatibility results screen == Changelog == += 1.6.0 = +- Added support for PHP 7.4 compatibility checks + = 1.5.0 = - Added support for PHP 7.3 compatibility checks diff --git a/wpengine-phpcompat.php b/wpengine-phpcompat.php index 8f52611..0ac1ffc 100755 --- a/wpengine-phpcompat.php +++ b/wpengine-phpcompat.php @@ -10,7 +10,7 @@ * Plugin URI: https://wpengine.com * Description: Make sure your plugins and themes are compatible with newer PHP versions. * Author: WP Engine - * Version: 1.5.0 + * Version: 1.6.0 * Author URI: https://wpengine.com * Text Domain: php-compatibility-checker */ @@ -118,6 +118,7 @@ function get_phpversions() { if ( version_compare( phpversion(), '5.3', '>=' ) ) { $versions = array( 'PHP 7.3' => '7.3' ) + $versions; + $versions = array( 'PHP 7.4' => '7.4' ) + $versions; } $old_versions = array( '5.6', '5.5', '5.4', '5.3' );