2257 Commits

Author SHA1 Message Date
Tomas Votruba
23db732224 Updated Rector to commit b4a1edfb887a550bc1b437d1a5d85167f7157a17
b4a1edfb88 [DeadCode] Add empty and multi stmts support on RemoveAlwaysTrueIfConditionRector (#2192)
2022-04-28 21:50:14 +00:00
Tomas Votruba
19ffa21a89 Updated Rector to commit a218dda0596a77a1cec8edbdbbfd4e4f8af02603
a218dda059 [DX] Move PhpVersionProvider from AbstractRector to particular services (#2189)
2022-04-28 20:11:07 +00:00
Tomas Votruba
7010e0938e Updated Rector to commit 680e8a1e3d5f187e8ea3999f8f78ec35b601da55
680e8a1e3d [Core] Add , , and  parameters to RectorConfig::parallel() method (#2188)
2022-04-28 18:36:02 +00:00
Tomas Votruba
3d30a34d24 Updated Rector to commit b055a8892749ed11ebf77d5ede4833093846471a
b055a88927 Add RectorConfigProvider to ask for configuration behave for 3rd party packages (#2187)
2022-04-28 17:21:22 +00:00
Tomas Votruba
0b4c6251c0 Updated Rector to commit b061dcdcf347e07924a1379afda752c15ade36ec
b061dcdcf3 [scoped] skip parameter provider class
2022-04-28 16:26:19 +00:00
Tomas Votruba
393ac88168 Updated Rector to commit de1d8592a94de6b3ebf5d84d66f6a03340e77500
de1d8592a9 Avoid scoping parameter provider to re-use, remove it from AbstractRector to ease the dependency tree (#2185)
2022-04-28 16:24:51 +00:00
Tomas Votruba
52322b58c1 Updated Rector to commit 8272c42bfaffbeb7f5154d95a022950140164533
8272c42bfa fix cs
2022-04-28 16:24:38 +00:00
Tomas Votruba
5a33df6c4f Updated Rector to commit 93030d3ef7bdf94769d3ea5c8b7d15fe9fb99658
93030d3ef7 skip empty dim fetch (#2184)
2022-04-28 15:28:06 +00:00
Tomas Votruba
e6d9de7fba Updated Rector to commit 08bb10de6b0344d73b225913c5ba7a23a7212a11
08bb10de6b [CodeQuality] Add InlineArrayReturnAssignRector (#2183)
2022-04-28 14:55:01 +00:00
Tomas Votruba
0e76f19491 Rector 0.12.22 2022-04-27 22:44:46 +00:00
Tomas Votruba
3912bd3674 Updated Rector to commit aa89fde52b66924e3b52ab7a106396c2b2aeb850
aa89fde52b link the token
2022-04-27 22:40:38 +00:00
Tomas Votruba
152dec0c68 Updated Rector to commit 0f83ac3c878728be3118805933959e99b0939716
0f83ac3c87 [Doctrine][Nette][TypeDeclaration] Handle add __construct with no Scope on InitializeDefaultEntityCollectionRector+RenderMethodParamToTypeDeclarationRector (#2180)
2022-04-27 14:52:56 +00:00
Tomas Votruba
33e9a631fe Updated Rector to commit 80df62821f4226577ad7501149ab9573f09db4c7
80df62821f [Doc] Document deprecated USE_NODES and CURRENT_STATEMENT constant to use existing method call when needed (#2181)
2022-04-27 14:50:11 +00:00
Tomas Votruba
2e00657da7 Updated Rector to commit 4fea4e23b905ca07fc5b6a2a94076804ab26c780
4fea4e23b9 [TypeDeclaration] Skip return type defined Closure on ReturnTypeDeclarationRector (#2179)
2022-04-27 13:37:37 +00:00
Tomas Votruba
127b77fdf0 Updated Rector to commit ae45be1cf3ef4103d529423fcd4d41f2223ddb9a
ae45be1cf3 [DX] Add note warning about using old config (#2174)
2022-04-26 23:02:07 +00:00
Tomas Votruba
e0d9ac9eb0 Updated Rector to commit 7fb8254c2383a96e83040b4c3ce9ee330a0a8363
7fb8254c23 Adds test for DowngradeMatchToSwitchRector match having true subject expression (#2176)
2022-04-26 22:43:42 +00:00
Tomas Votruba
e5c8dfa7cf Updated Rector to commit c5c620aa1a3f68745dc7a2cc03bc3d1f32c266b1
c5c620aa1a [DowngradePhp80] Add Static Call Support on DowngradeMatchToSwitchRector (#2175)
2022-04-26 20:58:13 +00:00
Tomas Votruba
523a714661 Updated Rector to commit 6680bd84128f8fc53fb0630b8d81700e93a5b1d9
6680bd8412 DowngradeMatchToSwitchRector adds Method and Function call support (#2173)
2022-04-26 16:47:55 +00:00
Tomas Votruba
c7ca691738 Updated Rector to commit ba29e3fd5f1584fe54d9b1edbe78b15e592a1791
ba29e3fd5f Re-use name scope (#2171)
2022-04-26 13:03:56 +00:00
Tomas Votruba
63f8af346b Updated Rector to commit 588470337e577595a90715dc456539804fd68674
588470337e Failing Tests for DowngradeMatchToSwitchRector (#2114)
2022-04-26 08:17:16 +00:00
Tomas Votruba
5147929731 Updated Rector to commit 43aa4d91f75ab9aa38f884e0a743d0bc6cda465b
43aa4d91f7 Add SameNamespacedTypeSpecifier (#2169)
2022-04-26 08:13:18 +00:00
Tomas Votruba
99b901c127 Updated Rector to commit 148dda778c7296a81b2935855b83def5c3385cbf
148dda778c Narrow to FQN (#2168)
2022-04-25 23:28:04 +00:00
Tomas Votruba
a71b4168c5 Updated Rector to commit 38e1f8a45082086aca4b26b811a1f467f6349f6c
38e1f8a450 Remove NamespaceNodeVisitor (#2167)
2022-04-25 22:12:26 +00:00
Tomas Votruba
6b472ba52b Updated Rector to commit 88cfff17bad60a6538d5d246389a4641b95347f8
88cfff17ba [TypeDeclaration] Use ParentPropertyLookupGuard on TypedPropertyFromStrictGetterMethodReturnTypeRector (#2166)
2022-04-25 19:20:08 +00:00
Tomas Votruba
e3ae598c02 Updated Rector to commit f7b095495b98f954e5adb50b210cb4954193b6ab
f7b095495b Remove last USE_NODE (#2165)
2022-04-25 16:12:00 +00:00
Tomas Votruba
18c61e765a Updated Rector to commit 25e6b17a862a90d6f67baaba3f164a31d039d3d7
25e6b17a86 Remove USE_NODES from ObjectTypeSpecifier::matchShortenedObjectType() (#2164)
2022-04-25 10:15:48 +00:00
Tomas Votruba
d931048bad Updated Rector to commit 4b0d9e2c3dbedf77961e4891822238b01cc3cc07
4b0d9e2c3d remove USE_NODES from matchAliasedObjectType (#2163)
2022-04-25 09:09:11 +00:00
Tomas Votruba
8b3f1ca9f2 Updated Rector to commit bc39917aba4cfe551ab9d31333f594f13f27888a
bc39917aba Remove USE_NODES from UseNodesToAddCollector (#2162)
2022-04-25 08:57:07 +00:00
Tomas Votruba
6a025e705f Updated Rector to commit 893c948a62a7baed48158fa3058ee82c8cee1bde
893c948a62 Remove USE_NODES from NameScopeFactory (#2161)
2022-04-25 08:36:39 +00:00
Tomas Votruba
ef4b5c7262 Updated Rector to commit 57b835b5d011c373bbe550e3d4d52eeb602c5ca7
57b835b5d0 Make ClassRenamer use UseImportsResolver (#2160)
2022-04-25 08:34:54 +00:00
Tomas Votruba
c78996f799 Updated Rector to commit 2447c3155bbb73b19d05710c02dd8414d4172009
2447c3155b Cleanup (#2159)
2022-04-25 08:28:43 +00:00
Tomas Votruba
0fcbb82b6e Updated Rector to commit 4981ebea25662a18fe88bc3530bb26762314a23e
4981ebea25 Move FileWithoutNamespaceNodeTraverser outside RectorNodeTraverser (#2158)
2022-04-25 08:23:08 +00:00
Tomas Votruba
c6a4383d80 Updated Rector to commit 69de62a1d8075c7a0c416e32e1e816ec94787dee
69de62a1d8 disable StatementNodeVisitor (#2154)
2022-04-25 08:05:28 +00:00
Tomas Votruba
f27b77df88 Updated Rector to commit 90dae505afec01b00c1ac154bfbf1cb05aa29e42
90dae505af Remove uses nodes attribute - part #1 (#2155)
2022-04-25 07:10:07 +00:00
Tomas Votruba
e7c3ff4e4f Updated Rector to commit f0223b6329e0f9bb5237ff953cfca1206f939e8f
f0223b6329 remove current stmts (#2151)
2022-04-24 22:09:06 +00:00
Tomas Votruba
0e0fc76d65 Updated Rector to commit 07ab4e0325606637d002f9f07e460c318416dcbb
07ab4e0325 [Php74] Allow change protected property of final class when property only in current class on TypedPropertyRector (#2153)
2022-04-24 19:57:12 +00:00
Tomas Votruba
7466aca164 Updated Rector to commit c3adc6b0435f9409b0d5ef08091002c50b9b2a76
c3adc6b043 [Privatization] Add ParentPropertyLookupGuard service (#2152)
2022-04-24 19:43:23 +00:00
Tomas Votruba
19e48f49f2 Updated Rector to commit 366c994a5c411c1c1f7d465d657ca1fe52bd90a4
366c994a5c More current statement attribute clean up (#2150)
2022-04-24 17:30:55 +00:00
Tomas Votruba
b739fa46b8 Updated Rector to commit 0954611a38d72d74dd0c1e305019906fc05dc5f4
0954611a38 Remove CURRENT_STATEMENT where not needed (#2149)
2022-04-24 17:00:46 +00:00
Tomas Votruba
623fdf63b7 Updated Rector to commit 80a04aa51f57c801cf30b81b3c02f3480471f278
80a04aa51f [Core] Remove Current Statement check on RectifiedAnalyzer, use Original Node instead (#2148)
2022-04-24 16:33:56 +00:00
Tomas Votruba
348b2f0e8d Updated Rector to commit eaaecc39d7077b49ad2b36a93e7dd21b2f25453c
eaaecc39d7 Remove PREVIOUS_STATEMENT from StatementNodeVisitor (#2146)
2022-04-24 16:25:18 +00:00
Tomas Votruba
671dde4094 Updated Rector to commit 1084889b30d96eb1545be3758fd2e2464ca4cece
1084889b30 [Php80] Skip different type cases cond on ChangeSwitchToMatchRector (#2147)
2022-04-24 15:27:24 +00:00
Tomas Votruba
22a6a7d222 Updated Rector to commit dc7a9a85f3ee3fe7982b150db7fdf85d14164a26
dc7a9a85f3 [DeadCode] Skip remove variable on switch use return after break on RemoveUnusedVariableAssignRector (#2145)
2022-04-24 07:48:38 +00:00
Tomas Votruba
54f1bf6955 Updated Rector to commit 55807fad4fb4a11650c87986aed5aa44e56c60bf
55807fad4f [cs] clean up use statement (#2144)
2022-04-23 22:44:46 +00:00
Tomas Votruba
44cb73b377 Updated Rector to commit e4858d9a60de38ee3420f4b7aa3468b5124e0a4b
e4858d9a60 [Php80] Handle named type on JMS\AccessType on AnnotationToAttributeRector (#2141)
2022-04-23 22:28:13 +00:00
Tomas Votruba
ae847cdf27 Updated Rector to commit eb1090c934e956fa07be0b4df8072b258ccec0c0
eb1090c934 [DeadCode] Add Break_, Continue_, Goto_ support on RemoveUnreachableStatementRector (#2142)
2022-04-23 22:22:46 +00:00
Tomas Votruba
20c7d5ad3a Updated Rector to commit 31656ed51d169ce3af067f3b46f135ea043525d6
31656ed51d [NodeCollector] Remove CurrentStmtResolver service (#2143)
2022-04-23 22:21:52 +00:00
Tomas Votruba
45aa9e4e71 Updated Rector to commit 469f0eed632bd7db26bcfe63a9545f9c5396e66c
469f0eed63 [DeadCode] Register more Stmt Nodes on RemoveUnreachableStatementRector (#2140)
2022-04-23 19:00:01 +00:00
Tomas Votruba
eb4cd2911f Updated Rector to commit 365b289eb7655248532048be8dcce9882908cb28
365b289eb7 [DeadCode] Skip Try { finally } assign and loop stmts on RemoveUnreachableStatementRector (#2139)
2022-04-23 13:47:51 +00:00
Tomas Votruba
6f99610f8c Updated Rector to commit f80d476d66901684e86c5b3599e6d448117ba478
f80d476d66 [DeadCode] Refactor RemoveUnreachableStatementRector to check previuos stmt against Throw_,Exit_,Return_,TryCatch_ (#2137)
2022-04-23 13:06:33 +00:00