Skip to content

Commit ed35b78

Browse files
committed
WAIT - PHPCSDevCS compatibility with PHPCS 4.x (may take a while) | GH Actions: run CS check against PHPCS 4.x dev
1 parent 4fda589 commit ed35b78

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/workflows/cs.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,8 @@ jobs:
3939
run: |
4040
# The sniff stage doesn't run the unit tests, so no need for PHPUnit.
4141
composer remove --no-update --dev phpunit/phpunit --no-scripts --no-interaction
42-
# Using PHPCS `3.x` as an early detection system for bugs upstream.
43-
# This should be changed to 4.x, but we'll need to wait for PHPCSDevCS to be compatible with 4.x.
44-
composer require --no-update squizlabs/php_codesniffer:"3.x-dev" --no-interaction
42+
# Using PHPCS `4.x` as an early detection system for bugs upstream.
43+
composer require --no-update squizlabs/php_codesniffer:"4.x-dev" --no-interaction
4544
4645
# Install dependencies and handle caching in one go.
4746
# @link https://github.com/marketplace/actions/install-php-dependencies-with-composer

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"phpunit/phpunit" : "^4.8.36 || ^5.7.21 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.5.32 || ^11.3.3",
3232
"php-parallel-lint/php-parallel-lint": "^1.4.0",
3333
"php-parallel-lint/php-console-highlighter": "^1.0.0",
34-
"phpcsstandards/phpcsdevcs": "^1.1.6",
34+
"phpcsstandards/phpcsdevcs": "^1.2.0",
3535
"phpcsstandards/phpcsutils" : "^1.0",
3636
"yoast/phpunit-polyfills": "^1.1 || ^2.0 || ^3.0"
3737
},

0 commit comments

Comments
 (0)