Skip to content

Commit d6508e6

Browse files
committed
Adds Rector for automated code refactoring
Integrates Rector to automate code upgrades and refactoring, enhancing code maintainability and quality. It also sets up a basic configuration to include the project's source and test directories and imports the assoConnect quality rules.
1 parent 3f26850 commit d6508e6

4 files changed

Lines changed: 2270 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616

1717
- uses: shivammathur/setup-php@2.10.0
1818
with:
19-
php-version: '7.4'
19+
php-version: '8.2'
2020

2121
- run: composer validate --strict
2222

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@
2727
"phpstan/phpstan": "^1.4",
2828
"phpstan/phpstan-phpunit": "^1.0",
2929
"phpstan/phpstan-strict-rules": "^1.1",
30-
"roave/no-floaters": "^1.5"
30+
"roave/no-floaters": "^1.5",
31+
"rector/rector": "^1.2"
3132
},
3233
"require": {
33-
"php": "^7.4|^8.0"
34+
"php": "^8.2"
3435
}
3536
}

0 commit comments

Comments
 (0)