diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..7ab11b1 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,7 @@ +/.gitignore export-ignore +/.gitattributes export-ignore +/phpunit.xml export-ignore +/workenv export-ignore +/tests export-ignore +/.github export-ignore +/phpcs.php diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 62f3254..c8e68cd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,6 +20,7 @@ jobs: - 7.4 - 8.0 - 8.1 + - 8.2 steps: - uses: actions/checkout@v2 diff --git a/CHANGELOG.md b/CHANGELOG.md index 27a5750..7ba94da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,12 @@ php-html-form - *Dep*: Deprecated. - *Fix*: Fixed. +2.0.2 [2022-12-12] +------------------ + +- Add: Support of PHP 8.2. +- Enh: Reduce size of package. + 2.0.1 [2022-01-30] ------------------ diff --git a/README.md b/README.md index fa61937..5118b81 100644 --- a/README.md +++ b/README.md @@ -359,6 +359,22 @@ $ XDEBUG_MODE=coverage ./vendor/bin/phpunit HTML coverage path: `build/coverage/index.html` +Code style +--- + +To fix code style, run: + +``` +~/.composer/vendor/bin/php-cs-fixer fix --config=./phpcs.php --verbose +``` + +You have to install [PHP CS Fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer) at first, if you +don't use build-in Docker image: + +``` +composer global require friendsofphp/php-cs-fixer "^3.13.0" +``` + License --- diff --git a/composer.json b/composer.json index a8f89b5..a884327 100644 --- a/composer.json +++ b/composer.json @@ -26,8 +26,5 @@ }, "autoload-dev": { "classmap": ["tests/"] - }, - "scripts": { - "cs:fix": "~/.composer/vendor/bin/php-cs-fixer fix --config=./phpcs.php --verbose" } } diff --git a/phpcs.php b/phpcs.php index 4076086..e5bd648 100644 --- a/phpcs.php +++ b/phpcs.php @@ -1,5 +1,10 @@