Add rector for automated refactoring

This commit is contained in:
Jan Böhmer 2023-05-28 01:16:12 +02:00
parent 132aac3951
commit 88ea920dfb
4 changed files with 110 additions and 4 deletions

65
composer.lock generated
View file

@ -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": "bc9721bfdd7cdf88630f55f2ff97a28d",
"content-hash": "b0d4bf26f478ca8451e65e618de7bde7",
"packages": [
{
"name": "beberlei/assert",
@ -14572,6 +14572,67 @@
},
"time": "2023-04-21T15:40:12+00:00"
},
{
"name": "rector/rector",
"version": "0.16.0",
"source": {
"type": "git",
"url": "https://github.com/rectorphp/rector.git",
"reference": "2125ff71ea05b079562a8f59ca48a97eb78dc07f"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/rectorphp/rector/zipball/2125ff71ea05b079562a8f59ca48a97eb78dc07f",
"reference": "2125ff71ea05b079562a8f59ca48a97eb78dc07f",
"shasum": ""
},
"require": {
"php": "^7.2|^8.0",
"phpstan/phpstan": "^1.10.14"
},
"conflict": {
"rector/rector-doctrine": "*",
"rector/rector-downgrade-php": "*",
"rector/rector-phpunit": "*",
"rector/rector-symfony": "*"
},
"bin": [
"bin/rector"
],
"type": "library",
"extra": {
"branch-alias": {
"dev-main": "0.15-dev"
}
},
"autoload": {
"files": [
"bootstrap.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"description": "Instant Upgrade and Automated Refactoring of any PHP code",
"keywords": [
"automation",
"dev",
"migration",
"refactoring"
],
"support": {
"issues": "https://github.com/rectorphp/rector/issues",
"source": "https://github.com/rectorphp/rector/tree/0.16.0"
},
"funding": [
{
"url": "https://github.com/tomasvotruba",
"type": "github"
}
],
"time": "2023-05-05T12:12:17+00:00"
},
{
"name": "roave/security-advisories",
"version": "dev-latest",
@ -15962,7 +16023,7 @@
"prefer-stable": false,
"prefer-lowest": false,
"platform": {
"php": "^7.4 || ^8.0",
"php": "^8.1",
"ext-ctype": "*",
"ext-dom": "*",
"ext-gd": "*",