Tomas Votruba
485a9df50b
Updated Rector to commit a91057e5a1f14fe12a1e9bded2c006012c09b00d
...
a91057e5a1
Remove PARENT_NODE from ArrayDimFetchTypeResolver (#4015 )
2023-05-29 09:58:15 +00:00
Tomas Votruba
1b08d37c26
Updated Rector to commit f15cbd7a7d1913287cf67fa9ee2311ebee11cae3
...
f15cbd7a7d
Remove PARENT_NODE from RemoveUnusedConstructorParamRector (#4014 )
2023-05-29 09:38:38 +00:00
Tomas Votruba
601ac11f14
Updated Rector to commit 32510e0dc7ee63d5a38c7d088aaf82eee605c516
...
32510e0dc7
Remove array items directly RemoveDuplicatedArrayKeyRector (#4013 )
2023-05-29 09:16:46 +00:00
Tomas Votruba
c98c306aa8
Updated Rector to commit cd48bfcc4785fb0d2cf828240f8f71231b232c85
...
cd48bfcc47
Cleanup removeNodeFromStatements(), removeArg(), removeParam(), removeStmt() methods and remove nodes directly (#4012 )
2023-05-29 08:39:56 +00:00
Tomas Votruba
b6aa01ccb7
Updated Rector to commit 8f24c73f1894356dd9ad3745924d027fa65a5602
...
8f24c73f18
Remove PARENT_NODE from CommentsMerger (#4011 )
2023-05-29 08:09:04 +00:00
Tomas Votruba
969127f9a6
Updated Rector to commit f429e2811c97689001f45c420d1d674322d00822
...
f429e2811c
Remove use imports directly (#4008 )
2023-05-29 06:32:46 +00:00
Tomas Votruba
b4e067384d
Updated Rector to commit 7891fdab42c174d2443674004396aef362994d4a
...
7891fdab42
[ProcessAnalyzer] Remove parent attribute on RectifiedAnalyzer (#4010 )
2023-05-29 00:14:54 +00:00
Tomas Votruba
b403b25ebd
Updated Rector to commit 1f594c05a70e6a8a40f15503644ed86a75bbc5f9
...
1f594c05a7
[CodeQuality] Remove parent attribute on LocalPropertyAnalyzer (#4007 )
2023-05-28 21:32:40 +00:00
Tomas Votruba
4cf0c8c8ba
Updated Rector to commit 48991c6394059d53256dcfacf41957f8a434a453
...
48991c6394
[Performance] Reduce ClassReflection lookup on RemoveUnusedPrivateMethodRector (#4006 )
2023-05-28 21:08:58 +00:00
Tomas Votruba
45419321ce
Updated Rector to commit 95d3dc93770718d2337a7addbfed021f6cad8072
...
95d3dc9377
[DeadCode] Remove parent lookup on RemoveUnusedPrivateMethodRector (#4005 )
2023-05-28 21:02:39 +00:00
Tomas Votruba
1e426f9497
Updated Rector to commit cc6dc93b566930e66b61ee04205ef943a8d9d339
...
cc6dc93b56
[CodeQuality] Reduce parent lookup on LocalPropertyAnalyzer::resolveFetchedPropertiesToTypesFromClass() (#4004 )
2023-05-28 20:47:12 +00:00
Tomas Votruba
84236fa01b
Updated Rector to commit 25d6a9740ed21735c4194b94f4d5cabe5b976832
...
25d6a9740e
Cleanup usage of NodesToAddCollector, return nodes directly instead (#4003 )
2023-05-28 20:45:54 +00:00
Tomas Votruba
0ac7af6da1
Updated Rector to commit 3fb912c94432b75fb50a14071f584671a882970d
...
3fb912c944
Rebuild docs (#4002 )
2023-05-28 16:17:31 +00:00
Tomas Votruba
99ac9186fd
Updated Rector to commit 25ae1d85be40243e03c950de3ac15af7b5b5d3b2
...
25ae1d85be
Remove TokenGetAllToObjectRector, as rare to use and leaky to handle, better handle in controller manual way (#4001 )
2023-05-28 16:12:02 +00:00
Tomas Votruba
82f764337c
Updated Rector to commit ec2893301809a41a4629aabc3888b968a9613f5e
...
ec28933018
[Naming] Remove parent attribute on VariableRenamer (#4000 )
2023-05-28 14:39:57 +00:00
Tomas Votruba
35af12fddf
Updated Rector to commit 7a739fd157144b4a03d88a01a5dd01740a02f2c7
...
7a739fd157
[Php81] Remove parent attribute on ReadOnlyPropertyRector (#3999 )
2023-05-28 14:30:49 +00:00
Tomas Votruba
9b4ae51505
Updated Rector to commit 4d4c73d5957cd03b26d4a7f6b6b3e209f4506cd3
...
4d4c73d595
[automated] Apply Coding Standard (#3998 )
2023-05-28 00:32:17 +00:00
Tomas Votruba
9c4d020ccb
Updated Rector to commit fddbb6231342654d15bbaec2792f182881ef66fe
...
fddbb62313
[TypeDeclaration] Remove parent attribute on ConstructorAssignDetector (#3996 )
2023-05-27 20:24:32 +00:00
Tomas Votruba
1ba4e98604
Updated Rector to commit a73aa4e226b74463ba3025dfe3e8bf11bb07a953
...
a73aa4e226
[Performance] Reduce resolveClassReflection() on PrivatizeFinalClassPropertyRector (#3994 )
2023-05-27 15:56:25 +00:00
Tomas Votruba
ea8041895c
Updated Rector to commit ebe2a37fe2c0c387e655259548ab7a6f76b3f298
...
ebe2a37fe2
[Php74][Privatization] Refactor ParentPropertyLookupGuard to use ClassReflection to reduce IO (#3993 )
2023-05-27 15:46:25 +00:00
Tomas Votruba
88a00032b7
Updated Rector to commit 754fca568f1d19b792bd5ccd476d10c675ba77f3
...
754fca568f
[Php74] Remove parent attribute on PropertyTypeChangeGuard (#3992 )
2023-05-27 12:07:30 +00:00
Tomas Votruba
3ab41786d6
Updated Rector to commit f9f1c269c7cfb02b3a78efca476cb2f189fbb33c
...
f9f1c269c7
[Php81] Add flag to only return node on changed params on NewInInitializerRector (#3991 )
2023-05-27 11:23:52 +00:00
Tomas Votruba
ffca1acc2d
Updated Rector to commit e8151293d5a25a776c73dd73eeed461c26dc7e6b
...
e8151293d5
Remove PARENT_NODE from CatchExceptionNameMatchingTypeRector (#3990 )
2023-05-27 10:47:14 +00:00
Tomas Votruba
0256872962
Updated Rector to commit fdf11bab10f9e7e1d63b4e0dba1325b947391e5d
...
fdf11bab10
Refactor PARENT_NODE from StringClassNameToClassConstantRector (#3989 )
2023-05-27 10:40:14 +00:00
Tomas Votruba
d48ca72a44
Updated Rector to commit d9908088500d235348a84de13f96823bc03b4706
...
d990808850
Remove PARENT_NODE from PseudoNamespaceToNamespaceRector (#3988 )
2023-05-27 10:31:41 +00:00
Tomas Votruba
3305b77873
Updated Rector to commit 61d780b7491001fa13597795320c9e92f893c50d
...
61d780b749
add symfony contracts for trigger_deprecation function (#3987 )
2023-05-27 10:19:41 +00:00
Tomas Votruba
c613309b06
Updated Rector to commit 1e0a1ceb897de085e3b8a68fbf88b4028d2064b0
...
1e0a1ceb89
Return nodes directly in MoneyFormatToNumberFormatRector (#3986 )
2023-05-27 10:18:32 +00:00
Tomas Votruba
466c54de06
Updated Rector to commit 582af523662c9aac2603a1535d58fc932ab1c330
...
582af52366
Refactor PARENT_NODE from ChangeAndIfToEarlyReturnRector (#3985 )
2023-05-27 09:52:50 +00:00
Tomas Votruba
4af8e96d37
Updated Rector to commit 330e1c5845ca7a569840384fa6eb3e730e13df71
...
330e1c5845
Update dependencies (#3984 )
2023-05-27 09:31:07 +00:00
Tomas Votruba
eb19a0084e
Updated Rector to commit 18d8df639c4376c2784a585eb5deafeda971597e
...
18d8df639c
Refactor away PARENT_NODE from AssignArrayToStringRector (#3983 )
2023-05-27 09:26:50 +00:00
Tomas Votruba
2774b5f9dd
Updated Rector to commit c70a5b8fdbbb3306603c67a972265872eaa3da2b
...
c70a5b8fdb
Refactor away from PARENT_NODE in ListToArrayDestructRector (#3982 )
2023-05-27 08:27:32 +00:00
Tomas Votruba
d9bf6b5c97
Updated Rector to commit 0f412e7961d9c00f47185bd8ed235db950f2d3eb
...
0f412e7961
handle nested ternary have last and start with () (#3981 )
2023-05-27 03:07:15 +00:00
Tomas Votruba
3267b9499d
Updated Rector to commit 385a9cb5f1235808c7226c2efccdc10fc6de6542
...
385a9cb5f1
[Php74] Skip parenthesize ternary if on ParenthesizeNestedTernaryRector (#3980 )
2023-05-26 23:56:10 +00:00
Tomas Votruba
d3dfbb4638
Updated Rector to commit 2f84187dc1d6db09788adf8346339d6854902db5
...
2f84187dc1
Remove RenameNamespaceRector, better handle by IDE or explicit RenameClassRector (#3979 )
2023-05-26 21:28:23 +00:00
Tomas Votruba
d8c877db45
Updated Rector to commit 33d05d3b9ee7838d254edf58dbd05a355891b48b
...
33d05d3b9e
Refactor RenameVariableToMatchMethodCallReturnTypeRector to StmtsAwareInterface (#3977 )
2023-05-26 14:00:49 +00:00
Tomas Votruba
ce521dbd34
Updated Rector to commit bb3d37ab214177a4e2877a5e0b383d055c62b6ad
...
bb3d37ab21
Remove ChangeReflectionTypeToStringToGetNameRector as niche and overly detailed, better refactor reflectio na as a whole (#3976 )
2023-05-26 13:24:53 +00:00
Tomas Votruba
1539fc211a
Updated Rector to commit c1cb710c872d25f5daa3fd085fc24640716a80f4
...
c1cb710c87
Remove ReservedObjectRector as requires explicit configuration and is handled by RenameClassRector already (#3975 )
2023-05-26 13:14:15 +00:00
Tomas Votruba
11b175ef12
Updated Rector to commit 6d4a73ed6e31a7fb64b547edad2270391ef03ca2
...
6d4a73ed6e
Remove PARENT_NODE from ParenthesizeNestedTernaryRector (#3974 )
2023-05-26 13:12:31 +00:00
Tomas Votruba
7587e17e7b
Updated Rector to commit d8e8a34a606b1e0b0a1a674a4e008822bbedf624
...
d8e8a34a60
Refactor PARENT_NODE away from EregToPregMatchRector (#3973 )
2023-05-26 13:00:21 +00:00
Tomas Votruba
af4dc685fb
Updated Rector to commit 14fc01359ed4b27798ac64532cb128ab0ad2f32e
...
14fc01359e
Make MysqlAssignToMysqliRector return new stmts directly (#3972 )
2023-05-26 12:44:21 +00:00
Tomas Votruba
f3a4204585
Updated Rector to commit 6c78d67c41b6445159db4d1c0841d1690d4ac2fe
...
6c78d67c41
Revert [NodeTypeResolver] Remove parent attribute usage on PHPStanNodeScopeResolver for next UnreachableStatementNode detection (#3970 ) (#3971 )
2023-05-26 10:03:50 +00:00
Tomas Votruba
eae5c53485
Updated Rector to commit 265d627ddf7663fe65bfda2aa4cf32fc4a3ba95d
...
265d627ddf
Remove IsObjectOnIncompleteClassRector as blindly turns all incomplete checks to negated, better examine manually (#3969 )
2023-05-25 16:35:30 +00:00
Tomas Votruba
2a68777a50
Updated Rector to commit d99713c7d55f25612440948b8a85b5b99e0b0e11
...
d99713c7d5
[CodingStyle] Remove parent attribute on NewlineAfterStatementRector (#3967 )
2023-05-25 15:39:32 +00:00
Tomas Votruba
c3d9ce9a50
Updated Rector to commit d279f71da7380aa7a55356c81f798aa56c7644f3
...
d279f71da7
[CodingStyle] Remove Else as next stmt on NewlineAfterStatementRector (#3966 )
2023-05-25 15:31:05 +00:00
Tomas Votruba
48f64cd534
Updated Rector to commit eb463524bc550781d37cb170c416329bfe727992
...
eb463524bc
Remove PARENT_NODE from CountArrayToEmptyArrayComparisonRector (#3965 )
2023-05-25 15:20:14 +00:00
Tomas Votruba
3a65d40447
Updated Rector to commit a244917a428baa6fa06fabaa4e0be15fd3154e50
...
a244917a42
Remove PARENT_NODE from AddReturnTypeDeclarationBasedOnParentClassMethodRector (#3964 )
2023-05-25 14:52:36 +00:00
Tomas Votruba
28adaf00cf
Updated Rector to commit 041fa832d50b0548594e5f8aa53036b394016c27
...
041fa832d5
Refactor from PARENT_NODE in RemoveParentCallWithoutParentRector (#3963 )
2023-05-25 14:40:36 +00:00
Tomas Votruba
92a1548c49
Updated Rector to commit 8e3620b0fb37f25a4966d9c07b0a55c02814f89c
...
8e3620b0fb
Refactor from PARENT_NODE in PostIncDecToPreIncDecRector (#3962 )
2023-05-25 14:00:24 +00:00
Tomas Votruba
0efdb38927
Updated Rector to commit 31712a1a466b4f2f2f83986aa6710405a00b446e
...
31712a1a46
Refactor from PARENT_NODE in TokenGetAllToObjectRector (#3961 )
2023-05-25 13:52:45 +00:00
Tomas Votruba
94c1b64b7e
Updated Rector to commit 18ac565714b7b66506a901ed4787d1ffbdd0af2d
...
18ac565714
Refactor from PARENT_NODE in EncapsedStringsToSprintfRector (#3960 )
2023-05-25 13:47:07 +00:00
Tomas Votruba
511b8597e6
Updated Rector to commit fc1fabe1a396339cbf1d9d0346f3f35bc75a33c3
...
fc1fabe1a3
[PostRector] Remove parent lookup on ClassRenamingPostRector (#3959 )
2023-05-25 12:11:39 +00:00
Tomas Votruba
f7d28cee5d
Updated Rector to commit 794bc8b5484e3eafcc91f85d443f665565c4ad44
...
794bc8b548
Remove PARENT_NODE from ForeachItemsAssignToEmptyArrayToAssignRector (#3958 )
2023-05-25 09:21:23 +00:00
Tomas Votruba
2a39baa0c1
Updated Rector to commit 179b5cba82257fd1d310301679a1913db458809e
...
179b5cba82
Make ChangeGlobalVariablesToPropertiesRector add properties directly, remove Nette inject methods (#3957 )
2023-05-24 18:48:59 +00:00
Tomas Votruba
e74948ca4a
Updated Rector to commit 69220a7b2d424babad1a6560dc546295d4e9ebe5
...
69220a7b2d
[Traverser] Remove beforeTraverse() in StmtKeyNodeVisitor (#3955 )
2023-05-24 15:18:00 +00:00
Tomas Votruba
eb3e6c221d
Updated Rector to commit ce12406878b202f9ceb1506a546e732ab1ca2716
...
ce12406878
Remove ChangeReadOnlyVariableWithDefaultValueToConstantRector overly complex and risky, better job for PHPStan (#3954 )
2023-05-24 15:09:06 +00:00
Tomas Votruba
7117aa039a
Updated Rector to commit c4b524e77a5eccd387d1ebe5b01ab3ae680049a3
...
c4b524e77a
Remove GetAndSetToMethodCallRector, as not practical and used for single legacy job (#3953 )
2023-05-24 13:47:55 +00:00
Tomas Votruba
7dcc1f5c95
Updated Rector to commit 7e9ee7afbf04ede850da1639b1b234e4e86730fb
...
7e9ee7afbf
Refactor from PARENT_NODE in AddReturnTypeDeclarationRector (#3952 )
2023-05-24 13:42:05 +00:00
Tomas Votruba
a1e2ba76d0
Updated Rector to commit 2e80e00913eacfcfded3af426cc7691a58d7f886
...
2e80e00913
Refactor from PARENT_NODE in AddArrayDefaultToArrayPropertyRector (#3951 )
2023-05-24 13:20:51 +00:00
Tomas Votruba
06e1c20df4
Updated Rector to commit 49561b6c81580ca995de4a8a00184f6935bec7db
...
49561b6c81
Refactor PARENT_NODE away from ParamTypeFromStrictTypedPropertyRector (#3950 )
2023-05-24 13:12:14 +00:00
Tomas Votruba
bddc5333e6
Updated Rector to commit 11e6796c0044a9217aed0c725e4b0f7c5767cb22
...
11e6796c00
Remove PARENT_NODE from FuncGetArgsToVariadicParamRector (#3949 )
2023-05-24 13:08:24 +00:00
Tomas Votruba
26ac08e306
Updated Rector to commit fa6f1f67578dbe765fc13abaa294e0f62e66d4a8
...
fa6f1f6757
[CodeQuality] Remove ExplicitMethodCallOverMagicGetSetRector designed for nette smart object migration only, not useful for general projects (#3948 )
2023-05-24 12:27:19 +00:00
Tomas Votruba
50ec3d44e9
Updated Rector to commit eef0e5d1f47500c9f56c5ccaa16523b11b47c8a7
...
eef0e5d1f4
Refactor PARENT_NODE away from JoinStringConcatRector (#3947 )
2023-05-24 12:18:40 +00:00
Tomas Votruba
1f89bb9561
Updated Rector to commit c050b66f9b9812f8f7735673e651deaccded0071
...
c050b66f9b
Refactor PARENT_NODE away from ListEachRector (#3946 )
2023-05-24 10:04:51 +00:00
Tomas Votruba
13cb0fa921
Updated Rector to commit 279126145e995c4d0b39a60bd6fc5fff5799199e
...
279126145e
Refactor PARENT_NODE away from UnsetCastRector (#3945 )
2023-05-24 09:42:43 +00:00
Tomas Votruba
d7eced92e2
Updated Rector to commit c504b2f11f2b732a744ad804b3a4b5afc30e2841
...
c504b2f11f
Refactor PARENT_NODE away from GetClassOnNullRector (#3944 )
2023-05-24 09:36:58 +00:00
Tomas Votruba
a32354e5eb
Updated Rector to commit 3eadce164860c1d4465e40fd5e07fb11d3aa1b99
...
3eadce1648
[NodeTypeResolver] Reduce parent attribute usage on PHPStanNodeScopeResolver (#3943 )
2023-05-24 04:20:01 +00:00
Tomas Votruba
5f32b6989a
Updated Rector to commit 62ecc9028796457cc58e717ac50c9d2cc5339b17
...
62ecc90287
[DeadCode] Skip assign closure bind by reference on RemoveUnusedVariableAssignRector (#3942 )
2023-05-24 02:50:28 +00:00
Tomas Votruba
f45c2e9273
Updated Rector to commit a354edaa5547f63a3407f3155e696f2709f4231a
...
a354edaa55
[DeadCode][Php56] Handle infinite loop on RemoveUnusedVariableAssignRector+AddDefaultValueForUndefinedVariableRector take 2 (#3941 )
2023-05-24 02:18:56 +00:00
Tomas Votruba
f7fccae5ba
Updated Rector to commit e04e51c25d95e3b2133adca5f01f8e7e002534af
...
e04e51c25d
[DeadCode][Php56] Handle infinite loop on RemoveUnusedVariableAssignRector+AddDefaultValueForUndefinedVariableRector (#3940 )
2023-05-23 22:15:37 +00:00
Tomas Votruba
31acf8cd20
Updated Rector to commit 5cd8ac7e0ef22955fc9db7ff6ac6c34e38217d85
...
5cd8ac7e0e
[Parser] Allow to get next of just changed node to new node by map stmt_key directly on AbstractRector for single node return (#3939 )
2023-05-23 16:54:12 +00:00
Tomas Votruba
b1c6bc3189
Updated Rector to commit 3f0b5649057005937557917b39212c3a6ac4343d
...
3f0b564905
[Traverser] Refactor set stmt_key set 0 for Else_, ElseIf, Catch_, Finally_, removing tweak start token pos on BetterNodeFinder (#3934 )
2023-05-23 16:30:10 +00:00
Tomas Votruba
a9dddd2b37
Updated Rector to commit fe7b5cd28f2333a07b22ddd955d693ebfbc44344
...
fe7b5cd28f
Remove PARENT_NODE from AddVoidReturnTypeWhereNoReturnRector (#3938 )
2023-05-23 14:21:41 +00:00
Tomas Votruba
22d4bdfac5
Updated Rector to commit d031c059eb2b7b07bbf9609b4eee0b6b895a4095
...
d031c059eb
Remove PARENT_NODE from RemoveJustPropertyFetchRector (#3937 )
2023-05-23 14:08:54 +00:00
Tomas Votruba
62ef1326dc
Updated Rector to commit 8a74ea74d5501f5f850632c834878468eaa39b8e
...
8a74ea74d5
[DeadCode] Remove RemoveDuplicatedInstanceOfRector as hardly practical (#3936 )
2023-05-23 13:59:54 +00:00
Tomas Votruba
ee06436c96
Updated Rector to commit d603b00818cfabc8aa1699b1154145e68bdb60a0
...
d603b00818
Remove PARENT_NODE from RemoveUnusedVariableAssignRector (#3935 )
2023-05-23 13:36:55 +00:00
Tomas Votruba
ad4182dc96
Updated Rector to commit 8f3569e84677b4a29feb0af0788a0156086f921f
...
8f3569e846
[DeadCode][CodeQuality] Fix infinite loop on RemoveUnusedVariableAssignRector+SimplifyIfElseToTernaryRector (#3933 )
2023-05-22 18:59:06 +00:00
Tomas Votruba
71d07f8bbf
Updated Rector to commit 6e88b21cfdbf459d4c2b4c97c0db2c9b2d90b572
...
6e88b21cfd
Remove PARENT_NODE from RemoveEmptyMethodCallRector (#3932 )
2023-05-22 14:37:37 +00:00
Tomas Votruba
410006adf0
Updated Rector to commit 4793a0d4c1294645177a18710667c7b35bcaaca3
...
4793a0d4c1
[CodingStyle] Skip jump change variable name on CatchExceptionNameMatchingTypeRector (#3931 )
2023-05-22 14:28:10 +00:00
Tomas Votruba
bbd4807a0e
Updated Rector to commit 88f17e9bb640c69d6b8ef31c6901ac71e2214c0d
...
88f17e9bb6
Remove array function from RemoveEmptyMethodCallRector as too narrow (#3930 )
2023-05-22 14:16:43 +00:00
Tomas Votruba
215231b596
Updated Rector to commit 112e490e3ca0d5949c97189c31fd4aef8833cfc1
...
112e490e3c
Remove PARENT_NODE from CatchExceptionNameMatchingTypeRector (#3929 )
2023-05-22 14:09:12 +00:00
Tomas Votruba
ed0c750f6e
Updated Rector to commit 26b32be535516bf80da94b85b2172b2ac64f9a7c
...
26b32be535
Remove PARENT_NODE from StringClassNameToClassConstantRector (#3928 )
2023-05-22 13:58:34 +00:00
Tomas Votruba
96fc00fd8e
Updated Rector to commit 3c69a0f9d7b075cef7e0e382eee94234f3629efa
...
3c69a0f9d7
Remove AddPregQuoteDelimiterRector as very narrow area and has not context awareness, better handle manually (#3927 )
2023-05-22 13:43:31 +00:00
Tomas Votruba
5f824909cb
Updated Rector to commit 79ffda7d8537ca6b04e14082bd9f0091fb97215d
...
79ffda7d85
Remove PARENT_NODE from CountOnNullRector (#3924 )
2023-05-22 13:31:04 +00:00
Tomas Votruba
8724ff4d63
Updated Rector to commit 392d81f7b01253711f7aa48344673b5f01b1c325
...
392d81f7b0
[DeadCode] Remove RemoveDuplicatedIfReturnRector as can lead to unexpeced consequences, better use static analysis and contextual handling (#3926 )
2023-05-22 13:11:03 +00:00
Tomas Votruba
325ed23768
Updated Rector to commit c5196d467d772a84590cc08909d01ae68409dbd4
...
c5196d467d
Fix PrivatesAccessor: use selectFromArgs() instead (#3923 )
2023-05-22 10:28:27 +00:00
Tomas Votruba
7eb9eec801
Updated Rector to commit 6c3f2cdf953587cdf0945c7fb6c05fd0083c25fc
...
6c3f2cdf95
[DX] Deprecate parent node attribute, allow return of NodeTraverser::* in refactor() method (#3922 )
2023-05-22 10:21:31 +00:00
Tomas Votruba
88a767b244
Updated Rector to commit 71f00d95fc16f31f7af4a524d5e179f467089e16
...
71f00d95fc
[1.0] Replace NodeConnectingVisitor with ParentConnectingVisitor (#3900 )
2023-05-22 08:41:41 +00:00
Tomas Votruba
f6d5507bbf
Updated Rector to commit d90c645a1fbe976efee82c32fd6a5a021c33645a
...
d90c645a1f
[DX] Try removing resolved name attribute, as namespacedName is already part of named nodes (#3921 )
2023-05-22 08:26:02 +00:00
Tomas Votruba
60fec4c15c
Updated Rector to commit 44735d3f2451e4c27ea85d1bc3052e06f8ed703c
...
44735d3f24
[ci] split rules tests to code quality, type declaration and dead-code to speed up (#3920 )
2023-05-22 08:03:15 +00:00
Tomas Votruba
e59b9e0910
Updated Rector to commit a813b1747dc78a40a22c993b1d8ebbc47e261298
...
a813b1747d
Remove ChangeOrIfReturnToEarlyReturnRector as makes code harder to read by duplication, rather use PHSPtan and extract method (#3916 )
2023-05-22 07:55:47 +00:00
Tomas Votruba
060e167ec1
Updated Rector to commit edc60fc2e9b431a69b66eac9318e9af3eb340d84
...
edc60fc2e9
[Traverser] Using bool value for assigned_to attribute on variable assign (#3918 )
2023-05-22 07:35:57 +00:00
Tomas Votruba
bd8dcc9cae
Updated Rector to commit 33c04c5c90725b36c864cfc86c5491f8d6912396
...
33c04c5c90
[DeadCode] Remove next attribute on RemoveUnusedVariableAssignRector (#3917 )
2023-05-21 22:39:40 +00:00
Tomas Votruba
aa57f0b8dc
Updated Rector to commit 8ec3a2722663bd6cc8e5d0714178ba03bc43056f
...
8ec3a27226
[1.0] Add public method BetterNodeFinder::resolvePreviousNode() and BetterNodeFinder::resolveNextNode() (#3896 )
2023-05-21 22:28:59 +00:00
Tomas Votruba
ab18d95c87
Updated Rector to commit e1f19806fb24f507172f8e8b17ebd51c159b3fe6
...
e1f19806fb
Remove NEXT_NODE from SimplifyIfReturnBoolRector (#3915 )
2023-05-21 15:34:58 +00:00
Tomas Votruba
0693ebbfc2
Updated Rector to commit a87a9d8e026c3499c980facf1bf24bd51b69c924
...
a87a9d8e02
Remove NEXT_NODE from ChangeIfElseValueAssignToEarlyReturnRector (#3914 )
2023-05-21 15:26:41 +00:00
Tomas Votruba
fce66262b4
Updated Rector to commit 46f5209563e77fb36fe1b04749419fb258e9d710
...
46f5209563
Remove NEXT_NODE dependency in ChangeAndIfToEarlyReturnRector, narrow to only closed scope function likes (#3913 )
2023-05-21 15:18:02 +00:00
Tomas Votruba
c1e94593a2
Updated Rector to commit a87a9d8e026c3499c980facf1bf24bd51b69c924
...
a87a9d8e02
Remove NEXT_NODE from ChangeIfElseValueAssignToEarlyReturnRector (#3914 )
2023-05-21 15:17:01 +00:00
Tomas Votruba
63128d63b6
Updated Rector to commit 26ca0e49ec38adfbff5432e3e0184a8f64c6176d
...
26ca0e49ec
[Parser] Fix Expr on edge Stmt start/end token detection on BetterNodeFinder (#3912 )
2023-05-21 14:46:45 +00:00
Tomas Votruba
5678d14ccc
Updated Rector to commit b1d123cf565cd0dcf011249ef535f3604f7ea2d6
...
b1d123cf56
Revert tweak start token pos compare (#3911 )
2023-05-21 14:18:15 +00:00
Tomas Votruba
1eed4009a2
Updated Rector to commit 1adea7295ddcdf79c0ee5c2859e42cbabb32f26b
...
1adea7295d
[automated] Re-Generate Nodes/Rectors Documentation (#3909 )
2023-05-21 00:34:59 +00:00
Tomas Votruba
d41cd2c891
Updated Rector to commit 6e9310b65c1139a8102ed7aab73b658ba5f97c83
...
6e9310b65c
[automated] Apply Coding Standard (#3910 )
2023-05-21 00:33:57 +00:00
Tomas Votruba
dde8a00cee
Updated Rector to commit b68e7e6f3672aa35776dd9a2ff829bf735d2a1f5
...
b68e7e6f36
[automated] Re-Generate preload.php (#3908 )
2023-05-21 00:33:23 +00:00
Tomas Votruba
bd4da5b387
Updated Rector to commit 78c35a0f724f7c6088ba39156dda4673deeab171
...
78c35a0f72
[Parser] Cover faster edge Expr in first token or end token of Stmt (#3907 )
2023-05-21 00:02:07 +00:00
Tomas Votruba
5bec307b19
Updated Rector to commit 32d2eed8a6e9cac8db8defe4a822f0d7b44bc6d8
...
32d2eed8a6
[Parser] Clean up BetterNodeFinder::findFirstInTopLevelStmtsAware() param type (#3906 )
2023-05-20 23:48:41 +00:00
Tomas Votruba
d3b93de97f
Updated Rector to commit 20fce3b76e3e6bbe510b79e11387831854b6cc3d
...
20fce3b76e
[Parser] Allow resolve next/prev stmt inside ClassLike or Declare_ on BetterNodeFinder (#3905 )
2023-05-20 23:37:39 +00:00
Tomas Votruba
c1ef3ac6b3
Updated Rector to commit 974a1bed608c4dedb4190e5fae4760c0d9bdfc72
...
974a1bed60
[Traverser] Clean up nullable stmt_key check on BetterNodeFinder::resolveNeighborNextStmt() take 2 (#3904 )
2023-05-20 19:24:20 +00:00
Tomas Votruba
d597a0e3f6
Updated Rector to commit 6b20ed1b7507740b9568ef1b6cec125849172f9e
...
6b20ed1b75
[Traverser] Clean up: Remove afterTraverse() on StmtKeyNodeVisitor (#3903 )
2023-05-20 17:12:03 +00:00
Tomas Votruba
cb0cb645f5
Updated Rector to commit e26c80b297515d924f61ed8518a42cdcbe666e19
...
e26c80b297
[Traverser] Clean up FileWithoutNamespace check on StmtKeyNodeVisitor.php (#3901 )
2023-05-20 15:16:20 +00:00
Tomas Votruba
6404cf85e9
Updated Rector to commit b5807b7bb1d2decb69755554a118f44ee5983fbb
...
b5807b7bb1
[Parser] Fix key negative on BetterNodeFinder locate stmt on FileWithoutNamespace lookup Declare_ (#3899 )
2023-05-19 17:48:51 +00:00
Tomas Votruba
c6385617d2
Updated Rector to commit a4d6d414fb2f6ce98c792178895ab01664fab358
...
a4d6d414fb
[TypeDeclaration] Add BoolReturnTypeFromStrictScalarReturnsRector (#3898 )
2023-05-19 15:03:57 +00:00
Tomas Votruba
b2768ca2ed
Updated Rector to commit 11b94117e5e915866695379b12dbb5cab0f90b79
...
11b94117e5
[Parser] Handle just removed stmt on BetterNodeFinder::resolveNodeFromFile() as fall for get next stmt (#3897 )
2023-05-19 13:48:58 +00:00
Tomas Votruba
6f986503de
Updated Rector to commit 5b990ff50f851726e5d3a28590572c8e3f99bb04
...
5b990ff50f
Bump symplify/phpstan-rules deps (#3894 )
2023-05-19 13:30:27 +00:00
Tomas Votruba
4d2dd37572
Updated Rector to commit e6d869b35e2e5785d8691408b490fa6283abb784
...
e6d869b35e
[Parser] Using resolveNeighborNextStmt() in resolveNextNodeFromOtherNode() as well on BetterNodeFinder (#3895 )
2023-05-19 12:24:31 +00:00
Tomas Votruba
d9f7fc972a
Updated Rector to commit f24703ec719c78e87fc75cdbe6e7eadde51dfde9
...
f24703ec71
[Parser] Avoid infinite loop due search fallback inline next on BetterNodeFinder (#3893 )
2023-05-19 12:06:28 +00:00
Tomas Votruba
51a6ca5220
Updated Rector to commit aef093ee8a5a19bb1351345770ac761ae9e0f655
...
aef093ee8a
[Traverser] Remove next attribute in BetterNodeFinder (#3887 )
2023-05-19 11:20:36 +00:00
Tomas Votruba
b90fc1b7fa
Updated Rector to commit 9fff8d32f3c52769e97ba3e358e8c43f143f0f92
...
9fff8d32f3
Using same node compare on AssignManipulator (#3892 )
2023-05-19 01:47:43 +00:00
Tomas Votruba
9842940c7a
Updated Rector to commit 9cfeac03ed7ae6b684dfd720d7765af25e3a6d08
...
9cfeac03ed
[Privatization][TypeDeclaration] Do not replace non-readonly property to constant on ChangeReadOnlyPropertyWithDefaultValueToConstantRector+TypedPropertyFromAssignsRector (#3891 )
2023-05-19 00:31:57 +00:00
Tomas Votruba
8ef3bb6268
Updated Rector to commit af2a06e85ea318a0a294fce64c157f6ae9887383
...
af2a06e85e
[TypeDeclaration] Skip possible void on ReturnTypeFromReturnNewRector (#3890 )
2023-05-18 21:38:08 +00:00
Tomas Votruba
dd33b8eb95
Updated Rector to commit cee58fb5a940fc1a90aab268bb2288c72d1b726e
...
cee58fb5a9
[Performance] Remove loop on BetterNodeFinder (#3889 )
2023-05-18 20:10:24 +00:00
Tomas Votruba
11f05b657f
Updated Rector to commit 24f8610224663ef71ca2e4007ef89997303f53b9
...
24f8610224
[NodeTypeResolver] Remove next node on PHPStanNodeScopeResolver (#3888 )
2023-05-18 18:55:12 +00:00
Tomas Votruba
ab605a51c8
Updated Rector to commit 1c2865afd4556f1dc27b94e5d18145680c8e7497
...
1c2865afd4
[Performance] Remove parent lookup on StmtKeyNodeVisitor (#3886 )
2023-05-18 15:38:11 +00:00
Tomas Votruba
d977ea6b6f
Updated Rector to commit 2766aa8ac4a273b0d0a6e0869eb71eca428fcaf0
...
2766aa8ac4
[Performance] Reduce repetitive parent lookup on BetterNodeFinder::findFirstNext() by inline search when possible (#3885 )
2023-05-18 15:08:46 +00:00
Tomas Votruba
1d3c5ccdb3
Updated Rector to commit b0649221240ae8a57862290534f9cb05135ac018
...
b064922124
[Traverser] Refactor BetterNodeFinder::findFirstNext() to remove next attribute usage (#3879 )
2023-05-18 14:18:42 +00:00
Tomas Votruba
44b12286ff
Updated Rector to commit 55d0b08789d0e1cbaaa7f62e8859971cb846294c
...
55d0b08789
Cherry pick key compare on BetterNodeFinder::resolvePreviousNodeFromFile() (#3884 )
2023-05-17 21:26:57 +00:00
Tomas Votruba
765b0f35a3
Updated Rector to commit 9e8880bc4acd34095b0879dbcb514133f1f9a01e
...
9e8880bc4a
Cherry-pick StmtKeyNodeVisitor check not Node (#3883 )
2023-05-17 19:54:55 +00:00
Tomas Votruba
219ab6ff69
Updated Rector to commit ae78ef15d1d27bd5f9df02457d02a0fb7d7c3c20
...
ae78ef15d1
Remove tweak require symplify/smart-file-system (#3882 )
2023-05-17 15:38:16 +00:00
Tomas Votruba
569c7dc229
Updated Rector to commit 5e3afcbdafde000f950ee844f22a2b020216cd82
...
5e3afcbdaf
Revert Cleanup CachedContainer invalidation (#3867 ) (#3880 )
2023-05-17 15:07:40 +00:00
Tomas Votruba
95d72b47e8
Updated Rector to commit c018b8b71b32e9654f7e884a20573a741184572e
...
c018b8b71b
[Traverser] Add StmtKeyNodeVisitor to remove next and prev attribute on BetterNodeFinder (#3870 )
2023-05-17 13:57:56 +00:00
Tomas Votruba
c7f7b9b6bb
Updated Rector to commit f0141afbc14283e1d7b2f40b5d30e42ab0045623
...
f0141afbc1
Cleanup CachedContainer invalidation (#3867 )
2023-05-17 13:02:11 +00:00
Tomas Votruba
5a424135e9
Updated Rector to commit a8fdf00925e9b46f3372da01d90d52780d1e802a
...
a8fdf00925
[PHP 7.0] Add IfIssetToCoalescingRector (#3878 )
2023-05-17 09:47:50 +00:00
Tomas Votruba
39a43e0003
Updated Rector to commit f2348ae8c75cafec524ea972ff6af912e8ce7c11
...
f2348ae8c7
[TypeDeclaration] Add nullable property type support to PropertyTypeFromStrictSetterGetterRector (#3877 )
2023-05-17 09:12:37 +00:00
Tomas Votruba
3f89b13d0e
Updated Rector to commit 16f3c961ead671df489ff9217d61cdfe40e09ec0
...
16f3c961ea
[CodeQuality] Add typed property support to IssetOnPropertyObjectToPropertyExistsRector (#3876 )
2023-05-17 08:38:16 +00:00
Tomas Votruba
5cff4d6dc6
Updated Rector to commit b8e70923f40d50a1c6aecf616d23b362b57321c3
...
b8e70923f4
Drop AttributeKey::SCOPE in PropertyManipulator (#3874 )
2023-05-16 17:24:21 +00:00
Tomas Votruba
ae79c1dc04
Updated Rector to commit 83a4a60b4c48d017694f2a0867f821c33ff5b27c
...
83a4a60b4c
Drop AttributeKey::SCOPE in MethodParameterTypeResolver (#3873 )
2023-05-16 17:11:44 +00:00
Tomas Votruba
5457dd1412
Updated Rector to commit 02500aaf35f5ae96f0522a85b0173342e1da2144
...
02500aaf35
Remove NEXT/PREV node usage from AlwaysStrictScalarExprAnalyzer (#3872 )
2023-05-16 14:24:15 +00:00
Tomas Votruba
56836f25e8
Updated Rector to commit d42fd12f4ad38f29f8e7f3fd19d9bb740f0f9356
...
d42fd12f4a
Improve IfToSpaceshipRector (#3871 )
2023-05-16 13:09:11 +00:00
Tomas Votruba
3847b0c3b5
Updated Rector to commit d2ae72e1fe616bb5c2d98c497a59991cfb5cca55
...
d2ae72e1fe
Remove NEXT_NODE from IfToSpaceshipRector (#3860 )
2023-05-16 12:50:39 +00:00
Tomas Votruba
ddec6bfaa0
Updated Rector to commit c0a042c3b68eb657d7e525ae2c2648d0ec96fb19
...
c0a042c3b6
Drop AttributeKey::SCOPE in MagicPropertyFetchAnalyzer (#3868 )
2023-05-16 10:36:59 +00:00
Tomas Votruba
1c94a7b40a
Updated Rector to commit ef257221acece7d2ea66c292fceb2718c87e0b53
...
ef257221ac
Make check more explicit (#3869 )
2023-05-16 10:30:50 +00:00
Tomas Votruba
0b0fda9095
Updated Rector to commit 99bdd27c00f0a27620f75eeeedc36bb3d505456b
...
99bdd27c00
[CodeQuality] Remove next attribute usage on SimplifyIfNullableReturnRector (#3866 )
2023-05-16 05:46:08 +00:00
Tomas Votruba
1c829c24c3
Updated Rector to commit 5d78e95c82dc59cd66919b703193d0978d01b902
...
5d78e95c82
Fix phpunit error on rector/rector:dev-main due to container cache (#3865 )
2023-05-16 04:29:24 +00:00
Tomas Votruba
9ae4a949d6
Updated Rector to commit cc3354aa8e764fd028f5de5ac1fb76e9304bdbbd
...
cc3354aa8e
[Parser] Remove next attribute usage on InlineCodeParser (#3864 )
2023-05-15 17:50:04 +00:00
Tomas Votruba
bd630a0db2
Updated Rector to commit 3bdd519e03e957461a48105820c20b35706f036e
...
3bdd519e03
Dump dependency container and re-use it - 35% faster test-suite (#3809 )
2023-05-15 15:58:52 +00:00
Tomas Votruba
86d7e3ad58
Updated Rector to commit 6156458ef43b1961a0ded5df85ca3fa4c35686e9
...
6156458ef4
Drop AttributeKey::SCOPE in AssignAndBinaryMap (#3861 )
2023-05-15 15:05:45 +00:00
Tomas Votruba
1b8d2812ef
Updated Rector to commit c8f697b16d888505c2bfbbcaba1665402091159b
...
c8f697b16d
Remove ToStringToMethodCallRector as not practical and only for demo, FalseReturnClassMethodToNullableRector, as requires detailed custom refactoring (#3854 )
2023-05-15 13:05:02 +00:00
Tomas Votruba
73738c0fb1
Updated Rector to commit 3df70bdd234efe4c6f49607df5378fb150b111e7
...
3df70bdd23
Remove NEXT_NODE from RemoveDuplicatedIfReturnRector (#3858 )
2023-05-15 13:00:55 +00:00
Tomas Votruba
1e7e201657
Updated Rector to commit 7a86ac22a0535b75f9e525776a315777029d7bdb
...
7a86ac22a0
[Privatization] Remove parent attribute set on ClassConstantFactory::createFromProperty() (#3859 )
2023-05-15 12:47:34 +00:00
Tomas Votruba
8dce3beed1
Updated Rector to commit c4bab4a7778e11715d720391c5daaa7a89e975ce
...
c4bab4a777
Remove next from ExplicitBoolCompareRector (#3857 )
2023-05-15 12:33:28 +00:00
Tomas Votruba
dca2603280
Updated Rector to commit f5d809ca431215d512bb0ba3894bab4543afb396
...
f5d809ca43
[CodingStyle] Remove AddFalseDefaultToBoolPropertyRector, as works with unrelaible docblocks (#3856 )
2023-05-15 12:19:44 +00:00
Tomas Votruba
89439d883f
Updated Rector to commit 95b1789a871adeb6b6555949d3cf32b0b4060613
...
95b1789a87
Drop AttributeKey::SCOPE in ArrayCallableMethodMatcher (#3835 )
2023-05-15 08:51:25 +00:00