forked from rectorphp/rector-src
-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.json
179 lines (179 loc) · 8.07 KB
/
composer.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
{
"name": "rector/rector-src",
"description": "Instant Upgrade and Automated Refactoring of any PHP code",
"bin": [
"bin/rector"
],
"license": "MIT",
"keywords": [
"refactoring",
"automation",
"migration"
],
"homepage": "https://getrector.com",
"require": {
"php": "^8.1",
"ext-json": "*",
"clue/ndjson-react": "^1.3",
"composer/semver": "^3.3.2",
"composer/xdebug-handler": "^3.0.3",
"doctrine/inflector": "^2.0.6",
"fidry/cpu-core-counter": "^0.5.1",
"illuminate/container": "^10.13",
"nette/utils": "^3.2",
"nikic/php-parser": "^4.17.0",
"ondram/ci-detector": "^4.1",
"phpstan/phpdoc-parser": "^1.23",
"phpstan/phpstan": "^1.10.26",
"react/event-loop": "^1.3",
"react/socket": "^1.12",
"react/promise": "^2.10",
"rector/extension-installer": "^0.11.2",
"rector/rector-doctrine": "dev-main",
"rector/rector-downgrade-php": "dev-main",
"rector/rector-phpunit": "dev-main",
"rector/rector-symfony": "dev-main",
"sebastian/diff": "^5.0",
"symfony/config": "^6.2",
"symfony/console": "^6.3",
"symfony/contracts": "^3.2",
"symfony/dependency-injection": "6.1.*",
"symfony/finder": "^6.3",
"symfony/process": "^6.3",
"symplify/easy-parallel": "^11.1",
"symplify/rule-doc-generator-contracts": "^11.1",
"webmozart/assert": "^1.11"
},
"require-dev": {
"cweagans/composer-patches": "^1.7.2",
"icanhazstring/composer-unused": "^0.8.5",
"nategood/httpful": "^0.3.2",
"phpstan/extension-installer": "^1.3",
"phpstan/phpstan-deprecation-rules": "^1.1",
"phpstan/phpstan-php-parser": "^1.1",
"phpstan/phpstan-phpunit": "^1.3.11",
"phpstan/phpstan-strict-rules": "^1.5",
"phpstan/phpstan-webmozart-assert": "^1.2.2",
"phpunit/phpunit": "^10.1",
"rector/phpstan-rules": "^0.6",
"rector/rector-generator": "^0.7.1",
"spatie/enum": "^3.13",
"symplify/easy-ci": "^11.1.18",
"symplify/easy-coding-standard": "^12.0.5",
"symplify/phpstan-extensions": "^11.2",
"symplify/phpstan-rules": "^12.0",
"symplify/rule-doc-generator": "^12.0",
"symplify/vendor-patches": "^11.2",
"tomasvotruba/class-leak": "^0.1",
"tomasvotruba/cognitive-complexity": "^0.1",
"tomasvotruba/lines": "^0.3",
"tomasvotruba/type-coverage": "^0.2",
"tomasvotruba/unused-public": "^0.2",
"tracy/tracy": "^2.9"
},
"replace": {
"rector/rector": "self.version",
"symfony/polyfill-ctype": "*",
"symfony/polyfill-intl-grapheme": "*",
"symfony/error-handler": "*",
"symfony/var-dumper": "*"
},
"autoload": {
"psr-4": {
"Rector\\": [
"packages",
"rules"
],
"Rector\\Core\\": "src",
"Rector\\Utils\\": "utils"
},
"files": [
"src/constants.php",
"src/functions/node_helper.php"
]
},
"autoload-dev": {
"psr-4": {
"Rector\\Tests\\": [
"packages-tests",
"rules-tests"
],
"Rector\\Utils\\Tests\\": "utils-tests",
"Rector\\Core\\Tests\\": "tests",
"Rector\\RuleDocGenerator\\": "utils/RuleDocGenerator/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"
],
"files": [
"tests/debug_functions.php",
"rules-tests/Transform/Rector/FuncCall/FuncCallToMethodCallRector/Source/some_view_function.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",
"fix-cs": "vendor/bin/ecs check --fix --ansi",
"phpstan": "vendor/bin/phpstan analyse --ansi --error-format symplify",
"phpstan-config": "vendor/bin/phpstan analyse config --ansi --error-format symplify",
"docs": [
"vendor/bin/rule-doc-generator generate rules --output-file build/rector_rules_overview.md --ansi --categorize 3",
"mv build/rector_rules_overview.md build/target-repository/docs/rector_rules_overview.md"
],
"rector": "bin/rector process --ansi",
"preload": "php build/build-preload.php .",
"release": "vendor/bin/monorepo-builder release patch --ansi"
},
"extra": {
"patches": {
"illuminate/container": [
"https://raw.githubusercontent.com/rectorphp/vendor-patches/main/patches//illuminate-container-container-php.patch"
],
"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",
"https://raw.githubusercontent.com/rectorphp/vendor-patches/main/patches/nikic-php-parser-lib-phpparser-node-stmt-namespace-php.patch"
],
"symfony/dependency-injection": [
"https://raw.githubusercontent.com/symplify/vendor-patch-files/main/patches/generic-php-config-loader.patch"
]
},
"composer-exit-on-patch-failure": true,
"enable-patching": true
},
"config": {
"sort-packages": true,
"platform-check": false,
"allow-plugins": {
"phpstan/extension-installer": true,
"rector/extension-installer": true,
"cweagans/composer-patches": true
}
},
"minimum-stability": "dev",
"prefer-stable": true
}