forked from rectorphp/rector-src
-
Notifications
You must be signed in to change notification settings - Fork 0
/
composer.json
166 lines (166 loc) · 7.5 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
{
"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.2",
"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.39",
"nette/utils": "^3.2",
"nikic/php-parser": "^4.18.0",
"ondram/ci-detector": "^4.1",
"phpstan/phpdoc-parser": "^1.25",
"phpstan/phpstan": "^1.10.56",
"react/event-loop": "^1.5",
"react/promise": "^2.10",
"react/socket": "^1.12",
"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/console": "^6.3",
"symfony/filesystem": "^6.3",
"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": {
"phpstan/extension-installer": "^1.3.1",
"phpstan/phpstan-deprecation-rules": "^1.1",
"phpstan/phpstan-phpunit": "^1.3.11",
"phpstan/phpstan-strict-rules": "^1.5",
"phpstan/phpstan-webmozart-assert": "^1.2.2",
"phpunit/phpunit": "^10.5",
"rector/rector-generator": "^0.7.10",
"spatie/enum": "^3.13",
"symplify/easy-ci": "^11.3",
"symplify/easy-coding-standard": "^12.1",
"symplify/phpstan-extensions": "^11.4",
"symplify/phpstan-rules": "^12.4.5",
"symplify/rule-doc-generator": "^12.1.1",
"symplify/vendor-patches": "^11.2",
"rector/release-notes-generator": "dev-main",
"tomasvotruba/class-leak": "^0.2",
"tomasvotruba/cognitive-complexity": "^0.2",
"tomasvotruba/lines": "^0.5",
"tomasvotruba/type-coverage": "^0.2",
"tomasvotruba/unused-public": "^0.3",
"tracy/tracy": "^2.9"
},
"replace": {
"rector/rector": "self.version",
"symfony/string": "*",
"symfony/polyfill-ctype": "*",
"symfony/polyfill-intl-grapheme": "*"
},
"autoload": {
"psr-4": {
"Rector\\": [
"rules",
"src"
],
"Rector\\Utils\\": "utils"
},
"files": [
"src/functions/node_helper.php"
]
},
"autoload-dev": {
"psr-4": {
"Rector\\Tests\\": [
"rules-tests",
"tests"
],
"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",
"docs": [
"vendor/bin/rule-doc-generator generate rules --output-file build/rector_rules_overview.md --ansi --categorize 3 --skip-type 'Rector\\Core\\Rector\\AbstractCollectorRector'",
"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": {
"symfony/console": [
"https://raw.githubusercontent.com/rectorphp/vendor-patches/main/patches/symfony-console-helper-helper-php.patch"
],
"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"
]
},
"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
}