2017-07-15 17:01:21 +00:00
|
|
|
{
|
2021-05-09 19:14:16 +00:00
|
|
|
"name": "rector/rector-src",
|
2022-01-25 16:56:52 +00:00
|
|
|
"description": "Instant Upgrade and Automated Refactoring of any PHP code",
|
2021-03-20 19:32:54 +00:00
|
|
|
"bin": [
|
|
|
|
"bin/rector"
|
|
|
|
],
|
|
|
|
"license": "MIT",
|
|
|
|
"homepage": "https://getrector.org",
|
2017-07-15 17:01:21 +00:00
|
|
|
"require": {
|
2021-12-03 14:44:33 +00:00
|
|
|
"php": "^8.1",
|
2020-12-12 13:53:10 +00:00
|
|
|
"ext-dom": "*",
|
2020-12-24 22:01:30 +00:00
|
|
|
"ext-json": "*",
|
2021-11-22 12:10:17 +00:00
|
|
|
"clue/ndjson-react": "^1.2",
|
2022-04-24 16:19:51 +00:00
|
|
|
"composer/semver": "^3.3",
|
2022-02-19 18:47:10 +00:00
|
|
|
"composer/xdebug-handler": "^3.0",
|
2020-12-09 15:41:23 +00:00
|
|
|
"doctrine/inflector": "^2.0",
|
2022-01-17 10:12:07 +00:00
|
|
|
"ergebnis/json-printer": "^3.2",
|
2022-02-20 11:56:50 +00:00
|
|
|
"helmich/typo3-typoscript-parser": "^2.4.1",
|
2021-06-04 20:27:47 +00:00
|
|
|
"idiosyncratic/editorconfig": "^0.1.3",
|
2021-06-28 21:07:40 +00:00
|
|
|
"myclabs/php-enum": "^1.8",
|
2022-02-20 12:17:34 +00:00
|
|
|
"nette/utils": "^3.2.7",
|
2021-12-01 10:20:06 +00:00
|
|
|
"nikic/php-parser": "^4.13.2",
|
2022-02-09 18:51:13 +00:00
|
|
|
"ondram/ci-detector": "^4.1",
|
2022-05-12 06:33:27 +00:00
|
|
|
"phpstan/phpdoc-parser": "^1.5.1",
|
2022-05-24 12:55:12 +00:00
|
|
|
"phpstan/phpstan": "^1.7.1",
|
2021-11-23 13:04:48 +00:00
|
|
|
"phpstan/phpstan-phpunit": "^1.0",
|
|
|
|
"psr/log": "^2.0",
|
2022-01-17 10:12:07 +00:00
|
|
|
"react/child-process": "^0.6.4",
|
2022-04-24 16:19:51 +00:00
|
|
|
"react/event-loop": "^1.3",
|
2022-01-17 10:12:07 +00:00
|
|
|
"react/socket": "^1.11",
|
2022-02-20 11:56:50 +00:00
|
|
|
"rector/extension-installer": "^0.11.2",
|
2021-12-09 10:07:12 +00:00
|
|
|
"rector/rector-cakephp": "dev-main",
|
|
|
|
"rector/rector-doctrine": "dev-main",
|
2021-12-11 07:42:06 +00:00
|
|
|
"rector/rector-generator": "dev-main",
|
2021-12-09 10:07:12 +00:00
|
|
|
"rector/rector-laravel": "dev-main",
|
|
|
|
"rector/rector-nette": "dev-main",
|
|
|
|
"rector/rector-phpoffice": "dev-main",
|
|
|
|
"rector/rector-phpunit": "dev-main",
|
|
|
|
"rector/rector-symfony": "dev-main",
|
2021-02-01 17:05:25 +00:00
|
|
|
"sebastian/diff": "^4.0.4",
|
2021-12-09 09:04:27 +00:00
|
|
|
"ssch/typo3-rector": "dev-main",
|
2022-05-27 10:29:13 +00:00
|
|
|
"symfony/console": "6.0.*",
|
2022-05-27 10:52:26 +00:00
|
|
|
"symfony/contracts": "3.0.*",
|
2022-05-27 10:29:13 +00:00
|
|
|
"symfony/dependency-injection": "6.0.*",
|
|
|
|
"symfony/finder": "6.0.*",
|
|
|
|
"symfony/process": "6.0.*",
|
|
|
|
"symfony/string": "6.0.*",
|
|
|
|
"symfony/yaml": "6.0.*",
|
2022-04-14 21:22:08 +00:00
|
|
|
"symplify/astral": "^10.2",
|
|
|
|
"symplify/autowire-array-parameter": "^10.2",
|
|
|
|
"symplify/composer-json-manipulator": "^10.2",
|
|
|
|
"symplify/easy-parallel": "^10.2",
|
|
|
|
"symplify/package-builder": "^10.2",
|
|
|
|
"symplify/rule-doc-generator-contracts": "^10.2",
|
|
|
|
"symplify/skipper": "^10.2",
|
|
|
|
"symplify/smart-file-system": "^10.2",
|
|
|
|
"symplify/symplify-kernel": "^10.2",
|
|
|
|
"symplify/vendor-patches": "^10.2",
|
2022-01-17 10:12:07 +00:00
|
|
|
"tracy/tracy": "^2.9",
|
2022-02-09 18:51:13 +00:00
|
|
|
"webmozart/assert": "^1.10"
|
2017-07-15 17:01:21 +00:00
|
|
|
},
|
|
|
|
"require-dev": {
|
2022-04-24 16:19:51 +00:00
|
|
|
"brianium/paratest": "^6.4",
|
2022-04-11 17:58:59 +00:00
|
|
|
"friendsofphp/php-cs-fixer": "^3.8",
|
2021-11-09 11:48:59 +00:00
|
|
|
"nategood/httpful": "^0.3.2",
|
2021-04-25 23:12:14 +00:00
|
|
|
"phpstan/extension-installer": "^1.1",
|
2021-10-27 18:15:53 +00:00
|
|
|
"phpstan/phpstan-nette": "^1.0",
|
2021-12-26 17:05:24 +00:00
|
|
|
"phpstan/phpstan-php-parser": "^1.0",
|
2021-11-28 19:20:57 +00:00
|
|
|
"phpstan/phpstan-strict-rules": "^1.1",
|
2021-11-02 14:01:11 +00:00
|
|
|
"phpstan/phpstan-webmozart-assert": "^1.0",
|
2020-12-12 14:58:47 +00:00
|
|
|
"phpunit/phpunit": "^9.5",
|
2022-05-03 14:53:25 +00:00
|
|
|
"rector/phpstan-rules": "^0.5.0",
|
2022-04-24 16:19:51 +00:00
|
|
|
"spatie/enum": "^3.13",
|
2022-04-14 21:22:08 +00:00
|
|
|
"symplify/coding-standard": "^10.2",
|
|
|
|
"symplify/easy-ci": "^10.2",
|
|
|
|
"symplify/easy-coding-standard": "^10.2",
|
|
|
|
"symplify/easy-testing": "^10.2",
|
|
|
|
"symplify/monorepo-builder": "^10.2",
|
|
|
|
"symplify/phpstan-extensions": "^10.2",
|
|
|
|
"symplify/phpstan-rules": "^10.2",
|
|
|
|
"symplify/rule-doc-generator": "^10.2",
|
2021-11-14 14:05:05 +00:00
|
|
|
"timeweb/phpstan-enum": "dev-22-upgrade-phpstan-to-1.0"
|
2017-07-15 17:01:21 +00:00
|
|
|
},
|
2021-05-10 18:00:54 +00:00
|
|
|
"replace": {
|
|
|
|
"rector/rector": "self.version"
|
|
|
|
},
|
2017-07-15 17:01:21 +00:00
|
|
|
"autoload": {
|
|
|
|
"psr-4": {
|
2021-07-05 08:52:04 +00:00
|
|
|
"Rector\\": [
|
|
|
|
"packages",
|
|
|
|
"rules"
|
|
|
|
],
|
2021-03-12 01:21:29 +00:00
|
|
|
"Rector\\Core\\": "src",
|
2021-03-12 22:20:25 +00:00
|
|
|
"Rector\\Compiler\\": "utils/compiler/src"
|
2021-04-24 14:22:36 +00:00
|
|
|
},
|
|
|
|
"files": [
|
2021-05-04 14:30:35 +00:00
|
|
|
"src/functions/node_helper.php",
|
|
|
|
"src/constants.php"
|
2021-04-24 14:22:36 +00:00
|
|
|
]
|
2017-07-15 17:01:21 +00:00
|
|
|
},
|
|
|
|
"autoload-dev": {
|
2021-03-12 23:52:38 +00:00
|
|
|
"psr-4": {
|
2021-07-05 08:52:04 +00:00
|
|
|
"Rector\\Tests\\": [
|
|
|
|
"packages-tests",
|
|
|
|
"rules-tests"
|
|
|
|
],
|
2021-03-12 23:52:38 +00:00
|
|
|
"Rector\\Core\\Tests\\": "tests",
|
2022-01-03 05:40:09 +00:00
|
|
|
"Rector\\RuleDocGenerator\\": "utils/rule-doc-generator/src",
|
2022-05-08 20:50:37 +00:00
|
|
|
"E2e\\Parallel\\Reflection\\Resolver\\": [
|
|
|
|
"e2e/parallel-reflection-resolver/src/",
|
|
|
|
"e2e/no-parallel-reflection-resolver/src"
|
|
|
|
]
|
2021-03-12 23:52:38 +00:00
|
|
|
},
|
2020-10-11 10:40:45 +00:00
|
|
|
"classmap": [
|
2021-05-15 14:18:20 +00:00
|
|
|
"stubs",
|
2021-03-14 13:22:25 +00:00
|
|
|
"rules-tests/CodingStyle/Rector/Namespace_/ImportFullyQualifiedNamesRector/Source",
|
2021-03-14 13:11:24 +00:00
|
|
|
"rules-tests/Renaming/Rector/Name/RenameClassRector/Source",
|
2021-11-16 13:15:57 +00:00
|
|
|
"rules-tests/Renaming/Rector/FileWithoutNamespace/PseudoNamespaceToNamespaceRector/Source"
|
2020-10-11 10:40:45 +00:00
|
|
|
],
|
|
|
|
"files": [
|
2021-03-22 01:55:01 +00:00
|
|
|
"stubs/Doctrine/Persistence/ObjectManager.php",
|
|
|
|
"stubs/Doctrine/Common/Persistence/ObjectManager.php",
|
2021-03-12 22:20:25 +00:00
|
|
|
"rules-tests/Transform/Rector/FuncCall/FuncCallToMethodCallRector/Source/some_view_function.php",
|
|
|
|
"rules-tests/TypeDeclaration/Rector/FunctionLike/ReturnTypeDeclarationRector/Source/MyBar.php",
|
2021-07-30 10:29:31 +00:00
|
|
|
"rules-tests/TypeDeclaration/Rector/ClassMethod/ParamTypeByMethodCallTypeRector/Source/FunctionTyped.php"
|
2021-03-12 23:52:38 +00:00
|
|
|
]
|
2017-07-15 17:01:21 +00:00
|
|
|
},
|
|
|
|
"scripts": {
|
2019-03-16 15:49:22 +00:00
|
|
|
"complete-check": [
|
|
|
|
"@check-cs",
|
|
|
|
"@phpstan",
|
2020-03-28 23:32:14 +00:00
|
|
|
"@docs",
|
2020-07-29 19:57:05 +00:00
|
|
|
"phpunit"
|
2019-03-16 15:49:22 +00:00
|
|
|
],
|
2020-09-09 21:58:12 +00:00
|
|
|
"check-cs": [
|
|
|
|
"vendor/bin/ecs check --ansi",
|
2020-10-25 23:22:53 +00:00
|
|
|
"vendor/bin/ecs check-markdown README.md --ansi"
|
2020-09-09 21:58:12 +00:00
|
|
|
],
|
2020-09-09 16:05:38 +00:00
|
|
|
"fix-cs": [
|
|
|
|
"vendor/bin/ecs check --fix --ansi",
|
2022-02-15 21:00:07 +00:00
|
|
|
"vendor/bin/ecs check-markdown README.md --fix --ansi"
|
2020-09-09 16:05:38 +00:00
|
|
|
],
|
2022-04-14 21:22:08 +00:00
|
|
|
"phpstan": "vendor/bin/phpstan analyse --ansi --error-format symplify --memory-limit 2G",
|
2020-10-11 14:17:43 +00:00
|
|
|
"phpstan-config": "vendor/bin/phpstan analyse config --ansi --error-format symplify",
|
2019-02-22 23:49:04 +00:00
|
|
|
"docs": [
|
2022-04-17 19:16:39 +00:00
|
|
|
"vendor/bin/rule-doc-generator generate packages rules --output-file build/rector_rules_overview.md --ansi --categorize",
|
2021-05-23 09:24:43 +00:00
|
|
|
"mv build/rector_rules_overview.md build/target-repository/docs/rector_rules_overview.md",
|
2021-05-16 08:13:13 +00:00
|
|
|
"vendor/bin/ecs check-markdown build/target-repository/docs/rector_rules_overview.md --ansi --fix"
|
2019-10-30 09:57:00 +00:00
|
|
|
],
|
2021-08-04 07:28:17 +00:00
|
|
|
"rector": "bin/rector process --ansi",
|
2021-08-11 15:43:49 +00:00
|
|
|
"preload": "php build/build-preload.php .",
|
|
|
|
"release": "vendor/bin/monorepo-builder release patch --ansi"
|
2017-08-19 23:46:12 +00:00
|
|
|
},
|
2021-03-20 19:32:54 +00:00
|
|
|
"extra": {
|
2021-12-07 12:40:14 +00:00
|
|
|
"patches": {
|
2022-05-08 20:50:37 +00:00
|
|
|
"nikic/php-parser": [
|
|
|
|
"https://raw.githubusercontent.com/rectorphp/vendor-patches/main/patches/nikic-php-parser-lib-phpparser-node-expr-closure-php.patch",
|
|
|
|
"https://raw.githubusercontent.com/rectorphp/vendor-patches/main/patches/nikic-php-parser-lib-phpparser-node-stmt-finally-php.patch",
|
|
|
|
"https://raw.githubusercontent.com/rectorphp/vendor-patches/main/patches/nikic-php-parser-lib-phpparser-node-stmt-function-php.patch",
|
|
|
|
"https://raw.githubusercontent.com/rectorphp/vendor-patches/main/patches/nikic-php-parser-lib-phpparser-node-stmt-do-php.patch",
|
|
|
|
"https://raw.githubusercontent.com/rectorphp/vendor-patches/main/patches/nikic-php-parser-lib-phpparser-node-stmt-catch-php.patch",
|
|
|
|
"https://raw.githubusercontent.com/rectorphp/vendor-patches/main/patches/nikic-php-parser-lib-phpparser-node-stmt-trycatch-php.patch",
|
|
|
|
"https://raw.githubusercontent.com/rectorphp/vendor-patches/main/patches/nikic-php-parser-lib-phpparser-node-stmt-for-php.patch",
|
|
|
|
"https://raw.githubusercontent.com/rectorphp/vendor-patches/main/patches/nikic-php-parser-lib-phpparser-node-stmt-classmethod-php.patch",
|
|
|
|
"https://raw.githubusercontent.com/rectorphp/vendor-patches/main/patches/nikic-php-parser-lib-phpparser-node-stmt-else-php.patch",
|
|
|
|
"https://raw.githubusercontent.com/rectorphp/vendor-patches/main/patches/nikic-php-parser-lib-phpparser-node-stmt-while-php.patch",
|
|
|
|
"https://raw.githubusercontent.com/rectorphp/vendor-patches/main/patches/nikic-php-parser-lib-phpparser-node-stmt-foreach-php.patch",
|
|
|
|
"https://raw.githubusercontent.com/rectorphp/vendor-patches/main/patches/nikic-php-parser-lib-phpparser-node-stmt-if-php.patch",
|
|
|
|
"https://raw.githubusercontent.com/rectorphp/vendor-patches/main/patches/nikic-php-parser-lib-phpparser-node-stmt-case-php.patch",
|
|
|
|
"https://raw.githubusercontent.com/rectorphp/vendor-patches/main/patches/nikic-php-parser-lib-phpparser-node-stmt-elseif-php.patch"
|
|
|
|
],
|
2021-12-07 12:40:14 +00:00
|
|
|
"symfony/dependency-injection": [
|
2022-04-08 18:45:24 +00:00
|
|
|
"https://raw.githubusercontent.com/rectorphp/vendor-patches/main/patches/symfony-dependency-injection.patch",
|
|
|
|
"https://raw.githubusercontent.com/rectorphp/vendor-patches/main/patches/symfony-php-config-loader.patch"
|
2021-12-07 12:40:14 +00:00
|
|
|
]
|
|
|
|
},
|
2022-05-08 20:50:37 +00:00
|
|
|
"enable-patching": true,
|
2021-03-20 19:32:54 +00:00
|
|
|
"branch-alias": {
|
2022-05-27 08:44:07 +00:00
|
|
|
"dev-main": "0.13-dev"
|
2021-03-20 19:32:54 +00:00
|
|
|
}
|
|
|
|
},
|
2017-08-19 23:46:12 +00:00
|
|
|
"config": {
|
2021-03-20 21:47:40 +00:00
|
|
|
"sort-packages": true,
|
2021-12-11 14:08:33 +00:00
|
|
|
"platform-check": false,
|
|
|
|
"allow-plugins": {
|
|
|
|
"phpstan/extension-installer": true,
|
|
|
|
"rector/extension-installer": true,
|
|
|
|
"cweagans/composer-patches": true
|
|
|
|
}
|
2021-12-08 15:54:59 +00:00
|
|
|
}
|
2020-07-03 14:41:59 +00:00
|
|
|
}
|