mirror of https://github.com/rectorphp/rector.git
192 lines
8.7 KiB
JSON
192 lines
8.7 KiB
JSON
{
|
|
"name": "rector/rector-src",
|
|
"description": "Instant Upgrade and Automated Refactoring of any PHP code",
|
|
"bin": [
|
|
"bin/rector"
|
|
],
|
|
"license": "MIT",
|
|
"homepage": "https://getrector.org",
|
|
"require": {
|
|
"php": "^8.1",
|
|
"ext-dom": "*",
|
|
"ext-json": "*",
|
|
"clue/ndjson-react": "^1.2",
|
|
"composer/semver": "^3.3",
|
|
"composer/xdebug-handler": "^3.0",
|
|
"doctrine/inflector": "^2.0",
|
|
"ergebnis/json-printer": "^3.2",
|
|
"helmich/typo3-typoscript-parser": "^2.4.1",
|
|
"idiosyncratic/editorconfig": "^0.1.3",
|
|
"myclabs/php-enum": "^1.8",
|
|
"nette/utils": "^3.2.7",
|
|
"nikic/php-parser": "^4.13.2",
|
|
"ondram/ci-detector": "^4.1",
|
|
"phpstan/phpdoc-parser": "^1.5.1",
|
|
"phpstan/phpstan": "^1.7.1",
|
|
"phpstan/phpstan-phpunit": "^1.0",
|
|
"psr/log": "^2.0",
|
|
"react/child-process": "^0.6.4",
|
|
"react/event-loop": "^1.3",
|
|
"react/socket": "^1.11",
|
|
"rector/extension-installer": "^0.11.2",
|
|
"rector/rector-cakephp": "dev-main",
|
|
"rector/rector-doctrine": "dev-main",
|
|
"rector/rector-generator": "dev-main",
|
|
"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",
|
|
"sebastian/diff": "^4.0.4",
|
|
"ssch/typo3-rector": "dev-main",
|
|
"symfony/console": "6.0.*",
|
|
"symfony/contracts": "3.0.*",
|
|
"symfony/dependency-injection": "6.0.*",
|
|
"symfony/finder": "6.0.*",
|
|
"symfony/process": "6.0.*",
|
|
"symfony/string": "6.0.*",
|
|
"symfony/yaml": "6.0.*",
|
|
"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",
|
|
"tracy/tracy": "^2.9",
|
|
"webmozart/assert": "^1.10"
|
|
},
|
|
"require-dev": {
|
|
"brianium/paratest": "^6.4",
|
|
"friendsofphp/php-cs-fixer": "^3.8",
|
|
"nategood/httpful": "^0.3.2",
|
|
"phpstan/extension-installer": "^1.1",
|
|
"phpstan/phpstan-nette": "^1.0",
|
|
"phpstan/phpstan-php-parser": "^1.0",
|
|
"phpstan/phpstan-strict-rules": "^1.1",
|
|
"phpstan/phpstan-webmozart-assert": "^1.0",
|
|
"phpunit/phpunit": "^9.5",
|
|
"rector/phpstan-rules": "^0.5.0",
|
|
"spatie/enum": "^3.13",
|
|
"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",
|
|
"timeweb/phpstan-enum": "dev-22-upgrade-phpstan-to-1.0"
|
|
},
|
|
"replace": {
|
|
"rector/rector": "self.version"
|
|
},
|
|
"autoload": {
|
|
"psr-4": {
|
|
"Rector\\": [
|
|
"packages",
|
|
"rules"
|
|
],
|
|
"Rector\\Core\\": "src",
|
|
"Rector\\Compiler\\": "utils/compiler/src"
|
|
},
|
|
"files": [
|
|
"src/functions/node_helper.php",
|
|
"src/constants.php"
|
|
]
|
|
},
|
|
"autoload-dev": {
|
|
"psr-4": {
|
|
"Rector\\Tests\\": [
|
|
"packages-tests",
|
|
"rules-tests"
|
|
],
|
|
"Rector\\Core\\Tests\\": "tests",
|
|
"Rector\\RuleDocGenerator\\": "utils/rule-doc-generator/src",
|
|
"E2e\\Parallel\\Reflection\\Resolver\\": [
|
|
"e2e/parallel-reflection-resolver/src/",
|
|
"e2e/no-parallel-reflection-resolver/src"
|
|
]
|
|
},
|
|
"classmap": [
|
|
"stubs",
|
|
"rules-tests/CodingStyle/Rector/Namespace_/ImportFullyQualifiedNamesRector/Source",
|
|
"rules-tests/Renaming/Rector/Name/RenameClassRector/Source",
|
|
"rules-tests/Renaming/Rector/FileWithoutNamespace/PseudoNamespaceToNamespaceRector/Source"
|
|
],
|
|
"files": [
|
|
"stubs/Doctrine/Persistence/ObjectManager.php",
|
|
"stubs/Doctrine/Common/Persistence/ObjectManager.php",
|
|
"rules-tests/Transform/Rector/FuncCall/FuncCallToMethodCallRector/Source/some_view_function.php",
|
|
"rules-tests/TypeDeclaration/Rector/FunctionLike/ReturnTypeDeclarationRector/Source/MyBar.php",
|
|
"rules-tests/TypeDeclaration/Rector/ClassMethod/ParamTypeByMethodCallTypeRector/Source/FunctionTyped.php"
|
|
]
|
|
},
|
|
"scripts": {
|
|
"complete-check": [
|
|
"@check-cs",
|
|
"@phpstan",
|
|
"@docs",
|
|
"phpunit"
|
|
],
|
|
"check-cs": [
|
|
"vendor/bin/ecs check --ansi",
|
|
"vendor/bin/ecs check-markdown README.md --ansi"
|
|
],
|
|
"fix-cs": [
|
|
"vendor/bin/ecs check --fix --ansi",
|
|
"vendor/bin/ecs check-markdown README.md --fix --ansi"
|
|
],
|
|
"phpstan": "vendor/bin/phpstan analyse --ansi --error-format symplify --memory-limit 2G",
|
|
"phpstan-config": "vendor/bin/phpstan analyse config --ansi --error-format symplify",
|
|
"docs": [
|
|
"vendor/bin/rule-doc-generator generate packages rules --output-file build/rector_rules_overview.md --ansi --categorize",
|
|
"mv build/rector_rules_overview.md build/target-repository/docs/rector_rules_overview.md",
|
|
"vendor/bin/ecs check-markdown build/target-repository/docs/rector_rules_overview.md --ansi --fix"
|
|
],
|
|
"rector": "bin/rector process --ansi",
|
|
"preload": "php build/build-preload.php .",
|
|
"release": "vendor/bin/monorepo-builder release patch --ansi"
|
|
},
|
|
"extra": {
|
|
"patches": {
|
|
"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"
|
|
],
|
|
"symfony/dependency-injection": [
|
|
"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"
|
|
]
|
|
},
|
|
"enable-patching": true,
|
|
"branch-alias": {
|
|
"dev-main": "0.13-dev"
|
|
}
|
|
},
|
|
"config": {
|
|
"sort-packages": true,
|
|
"platform-check": false,
|
|
"allow-plugins": {
|
|
"phpstan/extension-installer": true,
|
|
"rector/extension-installer": true,
|
|
"cweagans/composer-patches": true
|
|
}
|
|
}
|
|
}
|