Skip to content

Commit 503326c

Browse files
authored
Allow Rector 2 (#13)
* Allow Rector 2 * Allow Rector 2 * update downgrade * update downgrade
1 parent 05f5433 commit 503326c

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

.github/workflows/downgraded_release.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ jobs:
2020

2121
- uses: "ramsey/composer-install@v2"
2222

23-
# downgrade /src to PHP 7.2
24-
- run: vendor/bin/rector process src --config build/rector-downgrade-php-72.php --ansi
23+
# downgrade /src to PHP 7.4
24+
- run: vendor/bin/rector process src --config build/rector-downgrade-php-74.php --ansi
2525
- run: vendor/bin/ecs check src --fix --ansi
2626

27-
# copy PHP 7.2 composer
28-
- run: cp build/composer-php-72.json composer.json
27+
# copy PHP 7.4 composer
28+
- run: cp build/composer-php-74.json composer.json
2929

3030
# clear the dev files
3131
- run: rm -rf build .github tests ecs.php phpstan.neon phpunit.xml
@@ -42,7 +42,7 @@ jobs:
4242
run: |
4343
# separate a "git add" to add untracked (new) files too
4444
git add --all
45-
git commit -m "release PHP 7.2 downgraded"
45+
git commit -m "release PHP 7.4 downgraded"
4646
4747
# force push tag, so there is only 1 version
4848
git tag "${GITHUB_REF#refs/tags/}" --force

build/composer-php-72.json renamed to build/composer-php-74.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"license": "MIT",
66
"keywords": ["static analysis", "phpstan-extension"],
77
"require": {
8-
"php": "^7.2 || ^8.0",
9-
"phpstan/phpstan": "^1.10"
8+
"php": "^7.4 || ^8.0",
9+
"phpstan/phpstan": "^2.0"
1010
},
1111
"autoload": {
1212
"psr-4": {

build/rector-downgrade-php-72.php renamed to build/rector-downgrade-php-74.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
use Rector\Set\ValueObject\DowngradeLevelSetList;
77

88
return static function (RectorConfig $rectorConfig): void {
9-
$rectorConfig->sets([DowngradeLevelSetList::DOWN_TO_PHP_72]);
9+
$rectorConfig->sets([DowngradeLevelSetList::DOWN_TO_PHP_74]);
1010
};

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
"license": "MIT",
66
"require": {
77
"php": ">=8.1",
8-
"phpstan/phpstan": "^1.10.52 || ^2.0"
8+
"phpstan/phpstan": "^2.0"
99
},
1010
"require-dev": {
1111
"illuminate/container": "^10.39",
1212
"phpstan/extension-installer": "^1.3",
1313
"phpunit/phpunit": "^10.3",
14-
"rector/rector": "^1.2",
14+
"rector/rector": "^2.0",
1515
"symfony/dependency-injection": "^6.4",
1616
"symfony/finder": "^6.2",
1717
"symplify/easy-coding-standard": "^12.0",

0 commit comments

Comments
 (0)