2017-07-15 19:01:21 +02:00
|
|
|
{
|
|
|
|
"name": "rector/rector",
|
2018-12-08 23:13:44 +01:00
|
|
|
"description": "Instant upgrade and refactoring of your PHP code",
|
|
|
|
"keywords": ["instant upgrades", "instant refactoring", "ast", "automated refactoring"],
|
2019-05-25 19:36:12 +02:00
|
|
|
"homepage": "https://getrector.org",
|
2017-07-15 19:01:21 +02:00
|
|
|
"license": "MIT",
|
2019-05-25 19:36:12 +02:00
|
|
|
"authors": [
|
|
|
|
{ "name": "Tomas Votruba", "email": "tomas.vot@gmail.com", "homepage": "https://tomasvotruba.com" },
|
|
|
|
{ "name": "Jan Mikes", "email": "j.mikes@me.com", "homepage": "https://janmikes.cz" }
|
|
|
|
],
|
2019-02-12 00:53:16 +01:00
|
|
|
"bin": ["bin/rector"],
|
2017-07-15 19:01:21 +02:00
|
|
|
"require": {
|
2019-11-23 18:27:18 +01:00
|
|
|
"php": "^7.2",
|
2019-10-22 14:38:49 +02:00
|
|
|
"ext-json": "*",
|
2019-11-22 19:18:14 +01:00
|
|
|
"composer/xdebug-handler": "^1.4",
|
|
|
|
"doctrine/annotations": "^1.8",
|
2019-05-12 18:26:23 +02:00
|
|
|
"doctrine/inflector": "^1.3",
|
2018-09-08 11:23:42 +02:00
|
|
|
"jean85/pretty-package-versions": "^1.2",
|
2019-11-22 19:18:14 +01:00
|
|
|
"nette/robot-loader": "^3.2",
|
2020-01-19 01:38:32 +01:00
|
|
|
"nette/utils": "^3.1",
|
2019-11-08 23:10:23 +01:00
|
|
|
"nikic/php-parser": "^4.3",
|
2019-10-16 09:46:11 +02:00
|
|
|
"ondram/ci-detector": "^3.1",
|
2019-12-09 01:18:28 +01:00
|
|
|
"phpstan/phpdoc-parser": "^0.4",
|
2020-02-04 15:56:49 +01:00
|
|
|
"phpstan/phpstan": "^0.12.9",
|
2019-12-09 01:18:28 +01:00
|
|
|
"phpstan/phpstan-phpunit": "^0.12",
|
2020-02-07 20:46:43 +01:00
|
|
|
"sebastian/diff": "^3.0|^4.0",
|
2019-11-22 19:18:14 +01:00
|
|
|
"symfony/console": "^4.4|^5.0",
|
|
|
|
"symfony/dependency-injection": "^4.4|^5.0",
|
|
|
|
"symfony/finder": "^4.4|^5.0",
|
|
|
|
"symfony/process": "^4.4|^5.0",
|
2020-01-11 00:51:16 +01:00
|
|
|
"symplify/auto-bind-parameter": "^7.2",
|
2020-01-06 14:38:37 +01:00
|
|
|
"symplify/autowire-array-parameter": "^7.2",
|
2020-01-11 00:51:16 +01:00
|
|
|
"symplify/package-builder": "^7.2",
|
2020-01-21 18:33:29 +01:00
|
|
|
"symplify/set-config-resolver": "^7.2",
|
|
|
|
"tracy/tracy": "^2.7"
|
2017-07-15 19:01:21 +02:00
|
|
|
},
|
|
|
|
"require-dev": {
|
2019-11-22 19:18:14 +01:00
|
|
|
"friendsofphp/php-cs-fixer": "^2.16",
|
|
|
|
"jetbrains/phpstorm-stubs": "^2019.2",
|
2019-11-22 19:42:57 +01:00
|
|
|
"ocramius/package-versions": "^1.4|^1.5",
|
2020-02-07 20:46:43 +01:00
|
|
|
"phpunit/phpunit": "^8.4|^9.0",
|
2020-01-06 14:38:37 +01:00
|
|
|
"symplify/changelog-linker": "^7.2",
|
|
|
|
"symplify/easy-coding-standard": "^7.2",
|
|
|
|
"symplify/monorepo-builder": "^7.2",
|
|
|
|
"symplify/phpstan-extensions": "^7.2",
|
2020-01-21 18:33:29 +01:00
|
|
|
"thecodingmachine/phpstan-strict-rules": "^0.12"
|
2017-07-15 19:01:21 +02:00
|
|
|
},
|
|
|
|
"autoload": {
|
|
|
|
"psr-4": {
|
2020-02-06 22:48:18 +01:00
|
|
|
"Rector\\Core\\": "src",
|
2020-02-07 08:46:29 +01:00
|
|
|
"Rector\\Autodiscovery\\": "packages/autodiscovery/src",
|
|
|
|
"Rector\\Architecture\\": "packages/architecture/src",
|
|
|
|
"Rector\\AttributeAwarePhpDoc\\": "packages/attribute-aware-php-doc/src",
|
|
|
|
"Rector\\BetterPhpDocParser\\": "packages/better-php-doc-parser/src",
|
|
|
|
"Rector\\CakePHP\\": "packages/cakephp/src",
|
|
|
|
"Rector\\Celebrity\\": "packages/celebrity/src",
|
|
|
|
"Rector\\CodeQuality\\": "packages/code-quality/src",
|
|
|
|
"Rector\\CodingStyle\\": "packages/coding-style/src",
|
|
|
|
"Rector\\ConsoleDiffer\\": "packages/console-differ/src",
|
|
|
|
"Rector\\DeadCode\\": "packages/dead-code/src",
|
|
|
|
"Rector\\Doctrine\\": "packages/doctrine/src",
|
|
|
|
"Rector\\DoctrineCodeQuality\\": "packages/doctrine-code-quality/src",
|
|
|
|
"Rector\\FrameworkMigration\\": "packages/framework-migration/src",
|
|
|
|
"Rector\\FileSystemRector\\": "packages/file-system-rector/src",
|
|
|
|
"Rector\\ElasticSearchDSL\\": "packages/elastic-search-dsl/src",
|
|
|
|
"Rector\\Guzzle\\": "packages/guzzle/src",
|
|
|
|
"Rector\\Laravel\\": "packages/laravel/src",
|
|
|
|
"Rector\\Legacy\\": "packages/legacy/src",
|
|
|
|
"Rector\\MysqlToMysqli\\": "packages/mysql-to-mysqli/src",
|
|
|
|
"Rector\\NetteTesterToPHPUnit\\": "packages/nette-tester-to-phpunit/src",
|
|
|
|
"Rector\\NetteToSymfony\\": "packages/nette-to-symfony/src",
|
|
|
|
"Rector\\Nette\\": "packages/nette/src",
|
|
|
|
"Rector\\NodeTypeResolver\\": "packages/node-type-resolver/src",
|
|
|
|
"Rector\\PHPStan\\": "packages/phpstan/src",
|
|
|
|
"Rector\\PHPStanStaticTypeMapper\\": "packages/phpstan-static-type-mapper/src",
|
|
|
|
"Rector\\PHPUnitSymfony\\": "packages/phpunit-symfony/src",
|
|
|
|
"Rector\\PHPUnit\\": "packages/phpunit/src",
|
|
|
|
"Rector\\PSR4\\": "packages/psr4/src",
|
|
|
|
"Rector\\PhpSpecToPHPUnit\\": "packages/php-spec-to-phpunit/src",
|
|
|
|
"Rector\\Php52\\": "packages/php-52/src",
|
|
|
|
"Rector\\Php53\\": "packages/php-53/src",
|
|
|
|
"Rector\\Php54\\": "packages/php-54/src",
|
|
|
|
"Rector\\Php55\\": "packages/php-55/src",
|
|
|
|
"Rector\\Php56\\": "packages/php-56/src",
|
|
|
|
"Rector\\Php70\\": "packages/php-70/src",
|
|
|
|
"Rector\\Php71\\": "packages/php-71/src",
|
|
|
|
"Rector\\Php72\\": "packages/php-72/src",
|
|
|
|
"Rector\\Php73\\": "packages/php-73/src",
|
|
|
|
"Rector\\Php74\\": "packages/php-74/src",
|
|
|
|
"Rector\\Php80\\": "packages/php-80/src",
|
|
|
|
"Rector\\RemovingStatic\\": "packages/removing-static/src",
|
|
|
|
"Rector\\Renaming\\": "packages/renaming/src",
|
|
|
|
"Rector\\Restoration\\": "packages/restoration/src",
|
|
|
|
"Rector\\Refactoring\\": "packages/refactoring/src",
|
|
|
|
"Rector\\SOLID\\": "packages/solid/src",
|
|
|
|
"Rector\\Sensio\\": "packages/sensio/src",
|
|
|
|
"Rector\\Shopware\\": "packages/shopware/src",
|
|
|
|
"Rector\\Silverstripe\\": "packages/silverstripe/src",
|
|
|
|
"Rector\\Sylius\\": "packages/sylius/src",
|
|
|
|
"Rector\\SymfonyCodeQuality\\": "packages/symfony-code-quality/src",
|
|
|
|
"Rector\\SymfonyPHPUnit\\": "packages/symfony-phpunit/src",
|
|
|
|
"Rector\\Symfony\\": "packages/symfony/src",
|
|
|
|
"Rector\\Twig\\": "packages/twig/src",
|
|
|
|
"Rector\\TypeDeclaration\\": "packages/type-declaration/src",
|
|
|
|
"Rector\\ZendToSymfony\\": "packages/zend-to-symfony/src",
|
|
|
|
"Rector\\RectorGenerator\\": "packages/rector-generator/src",
|
|
|
|
"Rector\\StrictCodeQuality\\": "packages/strict-code-quality/src",
|
|
|
|
"Rector\\DynamicTypeAnalysis\\": "packages/dynamic-type-analysis/src",
|
|
|
|
"Rector\\PhpDeglobalize\\": "packages/php-deglobalize/src",
|
|
|
|
"Rector\\Phalcon\\": "packages/phalcon/src",
|
|
|
|
"Rector\\DoctrineGedmoToKnplabs\\": "packages/doctrine-gedmo-to-knplabs/src",
|
|
|
|
"Rector\\MinimalScope\\": "packages/minimal-scope/src",
|
|
|
|
"Rector\\Polyfill\\": "packages/polyfill/src",
|
|
|
|
"Rector\\CakePHPToSymfony\\": "packages/cakephp-to-symfony/src"
|
2020-01-21 18:33:29 +01:00
|
|
|
},
|
|
|
|
"files": [
|
2020-01-22 00:11:03 +01:00
|
|
|
"src/functions/rector_dump_function.php"
|
2020-01-21 18:33:29 +01:00
|
|
|
]
|
2017-07-15 19:01:21 +02:00
|
|
|
},
|
|
|
|
"autoload-dev": {
|
|
|
|
"psr-4": {
|
2020-02-06 22:48:18 +01:00
|
|
|
"Rector\\Core\\Tests\\": "tests",
|
2020-02-07 08:46:29 +01:00
|
|
|
"Rector\\Autodiscovery\\Tests\\": "packages/autodiscovery/tests",
|
|
|
|
"Rector\\Architecture\\Tests\\": "packages/architecture/tests",
|
|
|
|
"Rector\\BetterPhpDocParser\\Tests\\": "packages/better-php-doc-parser/tests",
|
|
|
|
"Rector\\CakePHP\\Tests\\": "packages/cakephp/tests",
|
|
|
|
"Rector\\Celebrity\\Tests\\": "packages/celebrity/tests",
|
|
|
|
"Rector\\CodeQuality\\Tests\\": "packages/code-quality/tests",
|
|
|
|
"Rector\\CodingStyle\\Tests\\": "packages/coding-style/tests",
|
|
|
|
"Rector\\DeadCode\\Tests\\": "packages/dead-code/tests",
|
|
|
|
"Rector\\Doctrine\\Tests\\": "packages/doctrine/tests",
|
|
|
|
"Rector\\DoctrineCodeQuality\\Tests\\": "packages/doctrine-code-quality/tests",
|
|
|
|
"Rector\\ElasticSearchDSL\\Tests\\": "packages/elastic-search-dsl/tests",
|
|
|
|
"Rector\\Guzzle\\Tests\\": "packages/guzzle/tests",
|
|
|
|
"Rector\\Laravel\\Tests\\": "packages/laravel/tests",
|
|
|
|
"Rector\\Legacy\\Tests\\": "packages/legacy/tests",
|
|
|
|
"Rector\\MysqlToMysqli\\Tests\\": "packages/mysql-to-mysqli/tests",
|
|
|
|
"Rector\\NetteTesterToPHPUnit\\Tests\\": "packages/nette-tester-to-phpunit/tests",
|
|
|
|
"Rector\\NetteToSymfony\\Tests\\": "packages/nette-to-symfony/tests",
|
|
|
|
"Rector\\Nette\\Tests\\": "packages/nette/tests",
|
|
|
|
"Rector\\NodeTypeResolver\\Tests\\": "packages/node-type-resolver/tests",
|
2019-08-24 13:42:40 +02:00
|
|
|
"Rector\\PHPStanExtensions\\": "utils/PHPStanExtensions/src",
|
2020-02-07 08:46:29 +01:00
|
|
|
"Rector\\PHPStan\\Tests\\": "packages/phpstan/tests",
|
|
|
|
"Rector\\PHPUnitSymfony\\Tests\\": "packages/phpunit-symfony/tests",
|
|
|
|
"Rector\\PHPUnit\\Tests\\": "packages/phpunit/tests",
|
|
|
|
"Rector\\PSR4\\Tests\\": "packages/psr4/tests",
|
|
|
|
"Rector\\PhpSpecToPHPUnit\\Tests\\": "packages/php-spec-to-phpunit/tests",
|
|
|
|
"Rector\\Php52\\Tests\\": "packages/php-52/tests",
|
|
|
|
"Rector\\Php53\\Tests\\": "packages/php-53/tests",
|
|
|
|
"Rector\\Php54\\Tests\\": "packages/php-54/tests",
|
|
|
|
"Rector\\Php55\\Tests\\": "packages/php-55/tests",
|
|
|
|
"Rector\\Php56\\Tests\\": "packages/php-56/tests",
|
|
|
|
"Rector\\Php70\\Tests\\": "packages/php-70/tests",
|
|
|
|
"Rector\\Php71\\Tests\\": "packages/php-71/tests",
|
|
|
|
"Rector\\Php72\\Tests\\": "packages/php-72/tests",
|
|
|
|
"Rector\\Php73\\Tests\\": "packages/php-73/tests",
|
|
|
|
"Rector\\Php74\\Tests\\": "packages/php-74/tests",
|
|
|
|
"Rector\\Php80\\Tests\\": "packages/php-80/tests",
|
|
|
|
"Rector\\RemovingStatic\\Tests\\": "packages/removing-static/tests",
|
|
|
|
"Rector\\Renaming\\Tests\\": "packages/renaming/tests",
|
|
|
|
"Rector\\Restoration\\Tests\\": "packages/restoration/tests",
|
|
|
|
"Rector\\SOLID\\Tests\\": "packages/solid/tests",
|
|
|
|
"Rector\\Sensio\\Tests\\": "packages/sensio/tests",
|
|
|
|
"Rector\\Shopware\\Tests\\": "packages/shopware/tests",
|
|
|
|
"Rector\\Silverstripe\\Tests\\": "packages/silverstripe/tests",
|
|
|
|
"Rector\\Sylius\\Tests\\": "packages/sylius/tests",
|
|
|
|
"Rector\\SymfonyCodeQuality\\Tests\\": "packages/symfony-code-quality/tests",
|
|
|
|
"Rector\\SymfonyPHPUnit\\Tests\\": "packages/symfony-phpunit/tests",
|
|
|
|
"Rector\\Symfony\\Tests\\": "packages/symfony/tests",
|
|
|
|
"Rector\\Twig\\Tests\\": "packages/twig/tests",
|
|
|
|
"Rector\\TypeDeclaration\\Tests\\": "packages/type-declaration/tests",
|
|
|
|
"Rector\\ZendToSymfony\\Tests\\": "packages/zend-to-symfony/tests",
|
|
|
|
"Rector\\StrictCodeQuality\\Tests\\": "packages/strict-code-quality/tests",
|
|
|
|
"Rector\\DynamicTypeAnalysis\\Tests\\": "packages/dynamic-type-analysis/tests",
|
|
|
|
"Rector\\PhpDeglobalize\\Tests\\": "packages/php-deglobalize/tests",
|
|
|
|
"Rector\\Phalcon\\Tests\\": "packages/phalcon/tests",
|
2020-01-21 23:52:44 +01:00
|
|
|
"Rector\\Utils\\DocumentationGenerator\\": "utils/DocumentationGenerator/src",
|
|
|
|
"Rector\\Utils\\PHPStanAttributeTypeSyncer\\": "utils/PHPStanAttributeTypeSyncer/src",
|
|
|
|
"Rector\\Utils\\PHPStanStaticTypeMapperChecker\\": "utils/PHPStanStaticTypeMapperChecker/src",
|
2020-02-07 08:46:29 +01:00
|
|
|
"Rector\\DoctrineGedmoToKnplabs\\Tests\\": "packages/doctrine-gedmo-to-knplabs/tests",
|
|
|
|
"Rector\\MinimalScope\\Tests\\": "packages/minimal-scope/tests",
|
|
|
|
"Rector\\Polyfill\\Tests\\": "packages/polyfill/tests",
|
|
|
|
"Rector\\CakePHPToSymfony\\Tests\\": "packages/cakephp-to-symfony/tests"
|
2018-05-30 11:29:21 +02:00
|
|
|
},
|
2018-05-30 14:59:09 +02:00
|
|
|
"classmap": [
|
2018-10-04 00:50:07 +08:00
|
|
|
"tests/Source",
|
2018-10-21 20:04:45 +02:00
|
|
|
"tests/Rector/Psr4/MultipleClassFileToPsr4ClassesRector/Source",
|
2019-09-10 08:21:20 +02:00
|
|
|
"tests/Rector/Namespace_/PseudoNamespaceToNamespaceRector/Source",
|
2019-09-15 20:54:06 +02:00
|
|
|
"tests/Issues/Issue1243/Source",
|
2020-02-07 08:46:29 +01:00
|
|
|
"packages/cakephp/tests/Rector/Name/ImplicitShortClassNameUseStatementRector/Source",
|
|
|
|
"packages/symfony/tests/Rector/FrameworkBundle/AbstractToConstructorInjectionRectorSource",
|
|
|
|
"packages/symfony/tests/Rector/FrameworkBundle/ContainerGetToConstructorInjectionRector/Source",
|
|
|
|
"packages/node-type-resolver/tests/PerNodeTypeResolver/ParamTypeResolver/Source",
|
|
|
|
"packages/node-type-resolver/tests/PerNodeTypeResolver/PropertyTypeResolver/Source",
|
|
|
|
"packages/autodiscovery/tests/Rector/FileSystem/MoveInterfacesToContractNamespaceDirectoryRector/Expected",
|
|
|
|
"packages/autodiscovery/tests/Rector/FileSystem/MoveServicesBySuffixToDirectoryRector/Expected",
|
|
|
|
"packages/cakephp/tests/Rector/StaticCall/AppUsesStaticCallToUseStatementRector/Source",
|
|
|
|
"packages/cakephp-to-symfony/tests/Rector/Class_/CakePHPControllerComponentToSymfonyRector/Source",
|
|
|
|
"packages/cakephp-to-symfony/tests/Rector/Class_/CakePHPModelToDoctrineEntityRector/Source"
|
2019-05-05 21:44:05 +02:00
|
|
|
],
|
|
|
|
"files": [
|
2020-02-07 08:46:29 +01:00
|
|
|
"packages/dead-code/tests/Rector/MethodCall/RemoveDefaultArgumentValueRector/Source/UserDefined.php",
|
|
|
|
"packages/type-declaration/tests/Rector/Property/CompleteVarDocTypePropertyRector/Source/EventDispatcher.php",
|
|
|
|
"packages/type-declaration/tests/Rector/FunctionLike/ReturnTypeDeclarationRector/Source/MyBar.php",
|
|
|
|
"packages/renaming/tests/Rector/Class_/RenameClassRector/Source/SomeInterface.php",
|
|
|
|
"packages/renaming/tests/Rector/Class_/RenameClassRector/Source/ClassImportingSameName.php",
|
|
|
|
"packages/renaming/tests/Rector/Class_/RenameClassRector/Source/Twig_Extension_Sandbox.php",
|
|
|
|
"packages/renaming/tests/Rector/Class_/RenameClassRector/Source/TwigFilter.php",
|
|
|
|
"packages/renaming/tests/Rector/Class_/RenameClassRector/Source/Manual_Twig_Filter.php",
|
|
|
|
"packages/solid/tests/Rector/ClassMethod/UseInterfaceOverImplementationInConstructorRector/Source/Apple.php",
|
|
|
|
"tests/Rector/Namespace_/PseudoNamespaceToNamespaceRector/Source/ChangeMeAnotherNamespace.php"
|
2018-05-30 14:59:09 +02:00
|
|
|
]
|
2017-07-15 19:01:21 +02:00
|
|
|
},
|
|
|
|
"scripts": {
|
2019-03-16 16:49:22 +01:00
|
|
|
"complete-check": [
|
|
|
|
"@check-cs",
|
|
|
|
"phpunit",
|
|
|
|
"@phpstan",
|
2019-07-05 17:44:36 -03:00
|
|
|
"@docs"
|
2019-03-16 16:49:22 +01:00
|
|
|
],
|
2020-02-06 20:15:36 +01:00
|
|
|
"check-cs": "vendor/bin/ecs check bin packages src tests utils compiler --ansi",
|
2017-12-30 15:41:49 -02:00
|
|
|
"fix-cs": [
|
2020-02-06 20:15:36 +01:00
|
|
|
"vendor/bin/ecs check bin packages src tests utils compiler --fix --ansi",
|
2019-10-30 11:15:08 +01:00
|
|
|
"ci/clean_trailing_spaces.sh"
|
2017-12-30 15:41:49 -02:00
|
|
|
],
|
2020-02-06 20:15:36 +01:00
|
|
|
"phpstan": "vendor/bin/phpstan analyse --ansi --error-format symplify",
|
2019-04-13 15:03:02 +02:00
|
|
|
"changelog": [
|
2020-02-06 20:15:36 +01:00
|
|
|
"vendor/bin/changelog-linker dump-merges --in-categories",
|
|
|
|
"vendor/bin/changelog-linker link",
|
|
|
|
"vendor/bin/changelog-linker cleanup"
|
2019-04-13 15:03:02 +02:00
|
|
|
],
|
2019-11-12 07:48:09 +01:00
|
|
|
"check-docs": [
|
2019-11-13 20:54:33 +01:00
|
|
|
"bin/rector dump-rectors -o markdown | diff --ignore-space-change docs/AllRectorsOverview.md - ",
|
|
|
|
"bin/rector dump-nodes -o markdown | diff --ignore-space-change docs/NodesOverview.md - "
|
2019-11-12 07:48:09 +01:00
|
|
|
],
|
2019-02-23 00:49:04 +01:00
|
|
|
"docs": [
|
|
|
|
"bin/rector dump-rectors -o markdown > docs/AllRectorsOverview.md",
|
|
|
|
"bin/rector dump-nodes -o markdown > docs/NodesOverview.md"
|
2019-10-30 10:57:00 +01:00
|
|
|
],
|
2020-01-27 23:58:05 +01:00
|
|
|
"rector-ci": "bin/rector process --config rector-ci.yaml --dry-run --ansi --no-progress-bar",
|
2019-11-26 08:45:39 +01:00
|
|
|
"rector": "bin/rector process --config rector-ci.yaml --ansi"
|
2017-08-20 01:46:12 +02:00
|
|
|
},
|
2018-09-29 16:10:46 +08:00
|
|
|
"scripts-descriptions": {
|
2019-07-06 21:51:36 +02:00
|
|
|
"docs": "Regenerate descriptions of all Rectors to docs/AllRectorsOverview.md file"
|
2018-09-29 16:10:46 +08:00
|
|
|
},
|
2017-08-20 01:46:12 +02:00
|
|
|
"config": {
|
|
|
|
"sort-packages": true
|
2019-03-22 11:00:46 +01:00
|
|
|
},
|
|
|
|
"extra": {
|
|
|
|
"branch-alias": {
|
2019-08-24 13:45:17 +02:00
|
|
|
"dev-master": "0.6-dev"
|
2019-03-22 11:00:46 +01:00
|
|
|
}
|
2019-12-08 22:00:38 +01:00
|
|
|
},
|
|
|
|
"minimum-stability": "dev",
|
|
|
|
"prefer-stable": true
|
2019-10-08 19:22:44 +01:00
|
|
|
}
|