Skip to content

Commit 203982a

Browse files
authored
Support Rector 2 (#4)
1 parent 1866038 commit 203982a

File tree

5 files changed

+32
-8
lines changed

5 files changed

+32
-8
lines changed

.github/workflows/validate.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,31 @@ jobs:
2626
static-code-analysis:
2727
runs-on: ubuntu-latest
2828

29+
strategy:
30+
fail-fast: false
31+
matrix:
32+
php-version:
33+
- "8.1"
34+
- "8.2"
35+
- "8.3"
36+
- "8.4"
37+
dependencies:
38+
- lowest
39+
- highest
40+
2941
steps:
3042
- uses: actions/checkout@master
3143

3244
- uses: shivammathur/setup-php@v2
3345
with:
3446
coverage: none
3547
extensions: mbstring
36-
php-version: 8.1
48+
php-version: "${{ matrix.php-version }}"
49+
50+
- if: matrix.dependencies == 'lowest'
51+
run: composer update --prefer-lowest --no-interaction --no-progress --no-suggest
3752

38-
- run: composer install --no-interaction --no-progress --no-suggest
53+
- if: matrix.dependencies == 'highest'
54+
run: composer update --no-interaction --no-progress --no-suggest
3955

4056
- run: vendor/bin/phpstan analyse

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ You can find and compare releases at the [GitHub release page](https://github.co
99

1010
## Unreleased
1111

12+
## v2.5.0
13+
14+
### Added
15+
16+
- Allow rector v2
17+
1218
## v2.4.0
1319

1420
### Added

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ it: fix normalize stan ## Perform quality checks
33

44
.PHONY: help
55
help: ## Displays this list of targets with descriptions
6-
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(firstword $(MAKEFILE_LIST)) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}'
6+
@grep --extended-regexp '^[a-zA-Z0-9_-]+:.*?## .*$$' $(firstword $(MAKEFILE_LIST)) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-30s\033[0m %s\n", $$1, $$2}'
77

88
.PHONY: setup
99
setup: vendor ## Set up the project
@@ -22,4 +22,4 @@ stan: vendor ## Runs a static analysis with phpstan
2222
vendor/bin/phpstan analyse
2323

2424
vendor: composer.json ## Install dependencies through composer
25-
composer install
25+
composer update

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ Shared configuration for rector
88

99
## Installation
1010

11-
composer require --dev mll-lab/rector-config
11+
```shell
12+
composer require --dev mll-lab/rector-config
13+
```
1214

1315
## Usage
1416

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mll-lab/rector-config",
3-
"description": "Shared rules for rector",
3+
"description": "Shared rules for Rector",
44
"license": "MIT",
55
"type": "library",
66
"keywords": [
@@ -15,13 +15,13 @@
1515
],
1616
"require": {
1717
"php": "^8.1",
18-
"rector/rector": "0.15 - 1"
18+
"rector/rector": "0.15 - 2"
1919
},
2020
"require-dev": {
2121
"ergebnis/composer-normalize": "^2.13",
2222
"mll-lab/php-cs-fixer-config": "^5",
2323
"phpstan/extension-installer": "^1",
24-
"phpstan/phpstan": "^1"
24+
"phpstan/phpstan": "^1.12 || ^2.1"
2525
},
2626
"autoload": {
2727
"files": [

0 commit comments

Comments
 (0)