diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 30a0caf..ce975a1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: strategy: matrix: - php: ['8.1'] + php: ['8.3'] steps: - name: Checkout Code diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e549d2..dd267f3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +1.2.0 (unreleased) +===== + +* (improvement) Add support for Symfony 7. +* (improvement) Require Symfony 6.4 and PHP 8.2 + + 1.1.0 ===== diff --git a/composer.json b/composer.json index 5d4f980..1db4a13 100644 --- a/composer.json +++ b/composer.json @@ -11,20 +11,21 @@ ], "homepage": "https://github.com/21TORR/TaskManagerBundle", "require": { - "php": ">= 8.1", + "php": ">= 8.3", "21torr/bundle-helpers": "^2.1", "21torr/cli": "^1.0", - "symfony/config": "^6.1", - "symfony/console": "^6.1", - "symfony/dependency-injection": "^6.1", - "symfony/http-kernel": "^6.1", - "symfony/messenger": "^6.1" + "symfony/config": "^6.4 || ^7.0", + "symfony/console": "^6.4 || ^7.0", + "symfony/dependency-injection": "^6.4 || ^7.0", + "symfony/event-dispatcher": "^6.4 || ^7.0", + "symfony/http-kernel": "^6.4 || ^7.0", + "symfony/messenger": "^6.4 || ^7.0" }, "require-dev": { "bamarni/composer-bin-plugin": "^1.8", - "phpunit/phpunit": "^9.5", + "phpunit/phpunit": "^9.6", "roave/security-advisories": "dev-latest", - "symfony/phpunit-bridge": "^6.1" + "symfony/phpunit-bridge": "^6.4 || ^7.0" }, "autoload": { "psr-4": { @@ -42,20 +43,24 @@ }, "sort-packages": true }, + "extra": { + "bamarni-bin": { + "bin-links": false, + "forward-command": true + } + }, "scripts": { - "post-install-cmd": [ - "@composer bin all install --ansi" - ], - "post-update-cmd": [ - "@composer bin all update --ansi" + "fix-lint": [ + "vendor-bin/cs-fixer/vendor/bin/php-cs-fixer fix --diff --config vendor-bin/cs-fixer/vendor/21torr/php-cs-fixer/.php-cs-fixer.dist.php --no-interaction --ansi", + "@composer bin c-norm normalize \"$(pwd)/composer.json\" --indent-style tab --indent-size 1 --ansi" ], "lint": [ - "@composer bin c-norm normalize \"$(pwd)/composer.json\" --indent-style tab --indent-size 1 --dry-run --ansi", - "php-cs-fixer fix --diff --config vendor-bin/cs-fixer/vendor/21torr/php-cs-fixer/.php-cs-fixer.dist.php --dry-run --no-interaction --ansi" + "@composer bin c-norm normalize \"$(pwd)/composer.json\" --indent-style tab --indent-size 1 --dry-run --ansi", + "vendor-bin/cs-fixer/vendor/bin/php-cs-fixer fix --diff --config vendor-bin/cs-fixer/vendor/21torr/php-cs-fixer/.php-cs-fixer.dist.php --dry-run --no-interaction --ansi" ], "test": [ "phpunit", - "phpstan analyze -c phpstan.neon . --ansi" + "vendor-bin/test/vendor/bin/phpstan analyze -c phpstan.neon . --ansi" ] } } diff --git a/phpstan.neon b/phpstan.neon index 687a2de..05b3505 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,2 +1,5 @@ includes: - vendor-bin/test/vendor/21torr/php-cs/phpstan/lib.neon + +parameters: + level: 9