Commit Graph

16041 Commits

Author SHA1 Message Date
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