Merge pull request #2049 from WordPress/feature/up-minimum-phpcs-version-3.6.2

Composer: up the minimum PHPCS version to 3.6.2
This commit is contained in:
Denis Žoljom 2022-05-16 13:32:45 +02:00 committed by GitHub
commit 1702977235
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 9 additions and 23 deletions

View file

@ -36,7 +36,7 @@ When you introduce new `public` sniff properties, or your sniff extends a class
## Pre-requisites
* WordPress-Coding-Standards
* PHP_CodeSniffer 3.3.1 or higher
* PHP_CodeSniffer 3.6.2 or higher
* PHPUnit 4.x, 5.x, 6.x or 7.x
The WordPress Coding Standards use the `PHP_CodeSniffer` native unit test suite for unit testing the sniffs.

View file

@ -4,7 +4,7 @@ about: A reminder to take action when a WPCS dependency changes
---
<!-- PLEASE prefix the title the Issue with the dependency name and version when action should be taken e.g. PHPCS 3.5: ... -->
<!-- PLEASE prefix the title the Issue with the dependency name and version when action should be taken e.g. PHPCS 3.7.0: ... -->
## Rationale

View file

@ -36,9 +36,9 @@ jobs:
phpcs_version: [ 'dev-master' ]
include:
- php: '7.3'
phpcs_version: '3.5.0'
phpcs_version: '3.6.2'
- php: '5.4'
phpcs_version: '3.5.0'
phpcs_version: '3.6.2'
steps:
- name: Checkout repository

View file

@ -115,7 +115,7 @@ jobs:
strategy:
matrix:
php: [ '7.4' ]
phpcs_version: [ 'dev-master', '3.5.0' ]
phpcs_version: [ 'dev-master', '3.6.2' ]
steps:
- name: Checkout repository

View file

@ -34,24 +34,10 @@ jobs:
continue-on-error: ${{ matrix.allowed_failure }}
strategy:
matrix:
php: [ '7.4', '7.3', '7.2', '7.1', '7.0', '5.6', '5.5', '5.4' ]
phpcs_version: [ 'dev-master', '3.5.0' ]
php: [ '8.1', '8.0', '7.4', '7.3', '7.2', '7.1', '7.0', '5.6', '5.5', '5.4' ]
phpcs_version: [ 'dev-master', '3.6.2' ]
allowed_failure: [ false ]
include:
- php: '8.1'
phpcs_version: 'dev-master'
allowed_failure: false
# PHPCS is only compatible with PHP 8.1 as of version 3.6.1.
- php: '8.1'
phpcs_version: '3.6.1'
allowed_failure: false
- php: '8.0'
phpcs_version: 'dev-master'
allowed_failure: false
# PHPCS is only compatible with PHP 8.0 as of version 3.5.7.
- php: '8.0'
phpcs_version: '3.5.7'
allowed_failure: false
# Add extra build to test against PHPCS 4.
#- php: '7.4'
# phpcs_version: '4.0.x-dev as 3.9.99'

View file

@ -59,7 +59,7 @@ This project is a collection of [PHP_CodeSniffer](https://github.com/squizlabs/P
### Requirements
The WordPress Coding Standards require PHP 5.4 or higher and [PHP_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) version **3.3.1** or higher.
The WordPress Coding Standards require PHP 5.4 or higher and [PHP_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) version **3.6.2** or higher.
### Composer

View file

@ -16,7 +16,7 @@
],
"require": {
"php": ">=5.4",
"squizlabs/php_codesniffer": "^3.5.0",
"squizlabs/php_codesniffer": "^3.6.2",
"phpcsstandards/phpcsutils": "^1.0",
"phpcsstandards/phpcsextra": "^1.0"
},