diff --git a/CHANGELOG.md b/CHANGELOG.md index 26fca43..67d14f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,12 +4,16 @@ All notable changes to `phpcs-type-sniff` will be documented in this file. Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) principles. +## 81.5.2 - 2024-04-05 +### Changed +- Min phpcs version to 3.9 +- Exit code for `phpcs-wbl` to `0` when `--dump-baseline` is used + ## 81.5.1 - 2024-04-04 ### Fixed - Flag `--dump-baseline` to `phpcs-wbl` binary. Can be used to extended full `phpcs-wbl` call with all flag to just update baseline file instead. E.g. in `composer.json`: `@phpcs --dump-baseline` - ## 81.5.0 - 2024-04-04 ### Added - Flag `--dump-baseline` to `phpcs-wbl` binary. Can be used to extended full `phpcs-wbl` call with all flag diff --git a/bin/phpcs-wbl b/bin/phpcs-wbl index c5a7a75..870cacc 100755 --- a/bin/phpcs-wbl +++ b/bin/phpcs-wbl @@ -25,6 +25,7 @@ then ARGS_MOD=$(echo "$ARGS_MOD" | sed -E "s/--dump-baseline//") # remove --dump-baseline so phpcs doesn't cry ARGS_MOD+=" --report-file=${baseline_file}" # add replacement --report-file=baseline.xml "$BIN_DIR"/phpcs $(echo "$ARGS_MOD") + exit 0 else # Run phpcs to generate report + subtract baseline "$BIN_DIR"/phpcs $(echo "$ARGS_MOD") diff --git a/composer.json b/composer.json index e48efc7..82daf9a 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ ], "require": { "php": ">=8.1", - "squizlabs/php_codesniffer": "^3.8" + "squizlabs/php_codesniffer": "^3.9" }, "require-dev": { "phpunit/phpunit": "^9.5",