From e6281439bba181503375ba74d74b03740da5a738 Mon Sep 17 00:00:00 2001 From: jrfnl <jrfnl@users.noreply.github.com> Date: Sun, 24 Apr 2022 02:32:28 +0200 Subject: [PATCH 1/2] Composer: update PHP Parallel Lint and Console Highlighter PHP Console Highlighter has released version `1.0.0` and PHP Parallel Lint version `1.3.2` is the first PHP Parallel Lint version which supports PHP Console Highlighter `1.0.0`. As the minimum supported PHP version is still PHP 5.3 for both, we can safely update both dependency requirements. Refs: * https://github.com/php-parallel-lint/PHP-Console-Highlighter/releases/tag/v1.0.0 * https://github.com/php-parallel-lint/PHP-Parallel-Lint/releases/tag/v1.3.2 --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 8cedf46c..69cc2f44 100644 --- a/composer.json +++ b/composer.json @@ -22,8 +22,8 @@ "wp-coding-standards/wpcs": "^2.3" }, "require-dev": { - "php-parallel-lint/php-parallel-lint": "^1.0", - "php-parallel-lint/php-console-highlighter": "^0.5", + "php-parallel-lint/php-parallel-lint": "^1.3.2", + "php-parallel-lint/php-console-highlighter": "^1.0.0", "phpcompatibility/php-compatibility": "^9", "phpcsstandards/phpcsdevtools": "^1.0", "phpunit/phpunit": "^4 || ^5 || ^6 || ^7" From 657a53cc17a8f2f792454f2609b923d1c54783a3 Mon Sep 17 00:00:00 2001 From: jrfnl <jrfnl@users.noreply.github.com> Date: Sun, 24 Apr 2022 02:32:39 +0200 Subject: [PATCH 2/2] GH Actions: show deprecations when linting While rare, there are some deprecations which PHP can show when a file is being linted. By default these are ignored by PHP-Parallel-Lint. Apparently though, there is an option to show them (wasn't documented until recently), so let's turn that option on. --- bin/php-lint | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/php-lint b/bin/php-lint index 0528ec77..71d9b7cc 100755 --- a/bin/php-lint +++ b/bin/php-lint @@ -7,4 +7,4 @@ # ./bin/php-lint # -"$(pwd)/vendor/bin/parallel-lint" . -e php --exclude vendor --exclude .git $@ +"$(pwd)/vendor/bin/parallel-lint" . -e php --show-deprecated --exclude vendor --exclude .git $@