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

Add PHP 7.4 Support #251

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
10 changes: 8 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ php:
- 7.1
- 7.2
- 7.3
- 7.4
env:
- WP_VERSION=latest
- WP_VERSION=4.5
Expand All @@ -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:
- |
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"email": "[email protected]"
}],
"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": {
Expand Down
130 changes: 51 additions & 79 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 11 additions & 8 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# PHP Compatibility Checker <a href="https://travis-ci.org/wpengine/phpcompat"><img src="https://travis-ci.org/wpengine/phpcompat.svg?branch=master"></a>
**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

Expand All @@ -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 ###
Expand Down Expand Up @@ -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 ##
Expand Down Expand Up @@ -117,6 +117,9 @@ To disclose security issues for this plugin please email [email protected]


## Changelog ##
### 1.6.0 ###
- Added support for PHP 7.4 compatibility checks

### 1.5.0 ###
- Added support for PHP 7.3 compatibility checks

Expand Down
Loading