diff --git a/.github/workflows/downgraded_release.yaml b/.github/workflows/downgraded_release.yaml index f5b493c8..24750267 100644 --- a/.github/workflows/downgraded_release.yaml +++ b/.github/workflows/downgraded_release.yaml @@ -20,12 +20,12 @@ jobs: - uses: "ramsey/composer-install@v2" - # downgrade /src to PHP 7.2 - - run: vendor/bin/rector process src --config build/rector-downgrade-php-72.php --ansi + # downgrade /src to PHP 7.4 + - run: vendor/bin/rector process src --config build/rector-downgrade-php-74.php --ansi - run: vendor/bin/ecs check src --fix --ansi - # copy PHP 7.2 composer - - run: cp build/composer-php-72.json composer.json + # copy PHP 7.4 composer + - run: cp build/composer-php-74.json composer.json # clear the dev files - run: rm -rf build .github tests ecs.php phpstan.neon phpunit.xml @@ -42,7 +42,7 @@ jobs: run: | # separate a "git add" to add untracked (new) files too git add --all - git commit -m "release PHP 7.2 downgraded" + git commit -m "release PHP 7.4 downgraded" # force push tag, so there is only 1 version git tag "${GITHUB_REF#refs/tags/}" --force diff --git a/build/composer-php-72.json b/build/composer-php-74.json similarity index 89% rename from build/composer-php-72.json rename to build/composer-php-74.json index fe963b98..b1788b99 100644 --- a/build/composer-php-72.json +++ b/build/composer-php-74.json @@ -5,8 +5,8 @@ "license": "MIT", "keywords": ["static analysis", "phpstan-extension"], "require": { - "php": "^7.2 || ^8.0", - "phpstan/phpstan": "^1.10" + "php": "^7.4 || ^8.0", + "phpstan/phpstan": "^2.0" }, "autoload": { "psr-4": { diff --git a/build/rector-downgrade-php-72.php b/build/rector-downgrade-php-74.php similarity index 73% rename from build/rector-downgrade-php-72.php rename to build/rector-downgrade-php-74.php index 5550cffe..b98900af 100644 --- a/build/rector-downgrade-php-72.php +++ b/build/rector-downgrade-php-74.php @@ -6,5 +6,5 @@ use Rector\Set\ValueObject\DowngradeLevelSetList; return static function (RectorConfig $rectorConfig): void { - $rectorConfig->sets([DowngradeLevelSetList::DOWN_TO_PHP_72]); + $rectorConfig->sets([DowngradeLevelSetList::DOWN_TO_PHP_74]); }; diff --git a/composer.json b/composer.json index 1b175495..f8190aad 100644 --- a/composer.json +++ b/composer.json @@ -5,13 +5,13 @@ "license": "MIT", "require": { "php": ">=8.1", - "phpstan/phpstan": "^1.10.52 || ^2.0" + "phpstan/phpstan": "^2.0" }, "require-dev": { "illuminate/container": "^10.39", "phpstan/extension-installer": "^1.3", "phpunit/phpunit": "^10.3", - "rector/rector": "^1.2", + "rector/rector": "^2.0", "symfony/dependency-injection": "^6.4", "symfony/finder": "^6.2", "symplify/easy-coding-standard": "^12.0",