diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ef4d6f1..998078a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,5 +8,5 @@ jobs: tests: uses: jackd248/reusable-github-actions/.github/workflows/tests-php.yml@main with: - php-versions: '["8.1", "8.2", "8.3", "8.4", "8.5"]' + php-versions: '["8.2", "8.3", "8.4", "8.5"]' dependencies: '["highest", "lowest"]' diff --git a/composer.json b/composer.json index 2f8ccc7..79e0a03 100644 --- a/composer.json +++ b/composer.json @@ -21,18 +21,18 @@ } ], "require": { - "php": "~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0", + "php": "~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0", "ext-tokenizer": "*", "friendsofphp/php-cs-fixer": "^3.14" }, "require-dev": { - "armin/editorconfig-cli": "^1.0 || ^2.0", + "armin/editorconfig-cli": "^2.0", "ergebnis/composer-normalize": "^2.44", "konradmichalik/php-cs-fixer-preset": "^0.1.0", "phpstan/phpstan": "^2.0", "phpstan/phpstan-phpunit": "^2.0", "phpstan/phpstan-symfony": "^2.0", - "phpunit/phpunit": "^10.2 || ^11.0 || ^12.0", + "phpunit/phpunit": "^11.0 || ^12.0", "rector/rector": "^2.2" }, "autoload": { diff --git a/composer.lock b/composer.lock index c2955bf..8fa26a7 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "f4fda84f7cc19f52985bd16834bfdaaa", + "content-hash": "d8443981b921cc6ec417859d1940f5d6", "packages": [ { "name": "clue/ndjson-react", @@ -5526,7 +5526,7 @@ "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": "~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0", + "php": "~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0", "ext-tokenizer": "*" }, "platform-dev": {}, diff --git a/rector.php b/rector.php index a732645..26f3769 100644 --- a/rector.php +++ b/rector.php @@ -21,9 +21,9 @@ __DIR__.'/src', __DIR__.'/tests', ]) - ->withPhpVersion(PhpVersion::PHP_81) + ->withPhpVersion(PhpVersion::PHP_82) ->withSets([ - LevelSetList::UP_TO_PHP_81, + LevelSetList::UP_TO_PHP_82, ]) ->withComposerBased(symfony: true) ->withRules([ diff --git a/src/Generators/DocBlockHeader.php b/src/Generators/DocBlockHeader.php index 0b4fb4c..de2f00d 100644 --- a/src/Generators/DocBlockHeader.php +++ b/src/Generators/DocBlockHeader.php @@ -29,14 +29,14 @@ * @author Konrad Michalik * @license GPL-3.0-or-later */ -final class DocBlockHeader implements Generator +final readonly class DocBlockHeader implements Generator { private function __construct( /** @var array> */ - public readonly array $annotations, - public readonly bool $preserveExisting, - public readonly Separate $separate, - public readonly bool $addStructureName, + public array $annotations, + public bool $preserveExisting, + public Separate $separate, + public bool $addStructureName, ) {} /**