From b29ce01136d3f3f58e68194971d3fd4a189670f7 Mon Sep 17 00:00:00 2001 From: Stein Magne Bjorklund <steinmb@smbjorklund.com> Date: Mon, 20 Sep 2021 12:09:36 +0200 Subject: [PATCH] Add refactoring and upgrade tool, Rector Util that enable us to upgrade parts of code base if needed. --- composer.json | 3 ++- composer.lock | 73 ++++++++++++++++++++++++++++++++++++++++++++++----- 2 files changed, 68 insertions(+), 8 deletions(-) diff --git a/composer.json b/composer.json index 96003397..e662fd44 100644 --- a/composer.json +++ b/composer.json @@ -34,10 +34,11 @@ } }, "require-dev": { - "roave/security-advisories": "dev-latest", "phan/phan": "4.x", "phpstan/phpstan": "^0.12.83", "phpunit/phpunit": "^9", + "rector/rector": "^0.11.53", + "roave/security-advisories": "dev-latest", "squizlabs/php_codesniffer": "3.*" } } diff --git a/composer.lock b/composer.lock index 67609d55..e14bc273 100644 --- a/composer.lock +++ b/composer.lock @@ -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": "6a721a617a138fb2f051106c7f959a79", + "content-hash": "3fa51561c5a390a56138089724f39b9d", "packages": [ { "name": "psr/cache", @@ -1959,16 +1959,16 @@ }, { "name": "phpstan/phpstan", - "version": "0.12.99", + "version": "0.12.98", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "b4d40f1d759942f523be267a1bab6884f46ca3f7" + "reference": "3bb7cc246c057405dd5e290c3ecc62ab51d57e00" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/b4d40f1d759942f523be267a1bab6884f46ca3f7", - "reference": "b4d40f1d759942f523be267a1bab6884f46ca3f7", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/3bb7cc246c057405dd5e290c3ecc62ab51d57e00", + "reference": "3bb7cc246c057405dd5e290c3ecc62ab51d57e00", "shasum": "" }, "require": { @@ -1999,7 +1999,7 @@ "description": "PHPStan - PHP Static Analysis Tool", "support": { "issues": "https://github.com/phpstan/phpstan/issues", - "source": "https://github.com/phpstan/phpstan/tree/0.12.99" + "source": "https://github.com/phpstan/phpstan/tree/0.12.98" }, "funding": [ { @@ -2019,7 +2019,7 @@ "type": "tidelift" } ], - "time": "2021-09-12T20:09:55+00:00" + "time": "2021-09-02T12:33:01+00:00" }, { "name": "phpunit/php-code-coverage", @@ -2442,6 +2442,65 @@ ], "time": "2021-08-31T06:47:40+00:00" }, + { + "name": "rector/rector", + "version": "0.11.53", + "source": { + "type": "git", + "url": "https://github.com/rectorphp/rector.git", + "reference": "110c96451dee4dd58d3a1ffc05e0b700892d6601" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/rectorphp/rector/zipball/110c96451dee4dd58d3a1ffc05e0b700892d6601", + "reference": "110c96451dee4dd58d3a1ffc05e0b700892d6601", + "shasum": "" + }, + "require": { + "php": "^7.1|^8.0", + "phpstan/phpstan": "0.12.98" + }, + "conflict": { + "phpstan/phpdoc-parser": "<=0.5.3", + "phpstan/phpstan": "<=0.12.82", + "rector/rector-cakephp": "*", + "rector/rector-doctrine": "*", + "rector/rector-nette": "*", + "rector/rector-phpunit": "*", + "rector/rector-prefixed": "*", + "rector/rector-symfony": "*" + }, + "bin": [ + "bin/rector" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "0.11-dev" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Prefixed and PHP 7.1 downgraded version of rector/rector", + "support": { + "issues": "https://github.com/rectorphp/rector/issues", + "source": "https://github.com/rectorphp/rector/tree/0.11.53" + }, + "funding": [ + { + "url": "https://github.com/tomasvotruba", + "type": "github" + } + ], + "time": "2021-09-09T18:12:42+00:00" + }, { "name": "roave/security-advisories", "version": "dev-latest", -- GitLab