Commit Graph

1332 Commits

Author SHA1 Message Date
Tomas Votruba
54b25e4291 Updated Rector to commit 2dccbb6b176a836e174babbaf6611a0d4730c55c
2dccbb6b17 Remove removeNode() from RemoveDeadReturnRector, merge RemoveLastReturnRector to RemoveDeadReturnRector (#4085)
2023-06-05 14:01:36 +00:00
Tomas Votruba
9e58a778f4 Updated Rector to commit 02b93319906ffa9842cbab8f80d58d8b5576cf43
02b9331990 [Traverser] Add BreakingRemovalGuardNodeVisitor to reduce parent attribute usage on BreakingRemovalGuard (#3978)
2023-06-04 09:14:10 +00:00
Tomas Votruba
062552321e Updated Rector to commit 4635c3936d920f9350e985772156a51b40604c9c
4635c3936d [PHP+HTML cleanup] Remove MixPhpHtmlDecorator (#4054)
2023-06-03 13:48:48 +00:00
Tomas Votruba
9a2931cbe4 Updated Rector to commit bdc2fc99631f67eeb2d96e2cf0906279c2561c9a
bdc2fc9963 [NodeManipulator] Remove parent lookup on PropertyFetchAssignManipulator (#4037)
2023-06-01 08:56:46 +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
eb19a0084e Updated Rector to commit 18d8df639c4376c2784a585eb5deafeda971597e
18d8df639c Refactor away PARENT_NODE from AssignArrayToStringRector (#3983)
2023-05-27 09:26:50 +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
28adaf00cf Updated Rector to commit 041fa832d50b0548594e5f8aa53036b394016c27
041fa832d5 Refactor from PARENT_NODE in RemoveParentCallWithoutParentRector (#3963)
2023-05-25 14:40:36 +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
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
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
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
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
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
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
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
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
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
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
dd33b8eb95 Updated Rector to commit cee58fb5a940fc1a90aab268bb2288c72d1b726e
cee58fb5a9 [Performance] Remove loop  on BetterNodeFinder (#3889)
2023-05-18 20:10:24 +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
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
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
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
86d7e3ad58 Updated Rector to commit 6156458ef43b1961a0ded5df85ca3fa4c35686e9
6156458ef4 Drop AttributeKey::SCOPE in AssignAndBinaryMap (#3861)
2023-05-15 15:05:45 +00:00
Tomas Votruba
4fa709b27b Updated Rector to commit 05c4367a51af6f0d4c56a9ab466aa32a873acc83
05c4367a51 [Printer] Reduce parent attribute usage on BetterStandardPrinter on print ArrowFunction comment (#3855)
2023-05-15 08:40:30 +00:00
Tomas Votruba
e02a2a45af Updated Rector to commit 33e59eeadf3da67db8dcdebfc8bef3701a17592a
33e59eeadf Remove UpdateFileNameByClassNameFileSystemRector niche rule that was added just for example sake (#3849)
2023-05-14 16:07:53 +00:00
Tomas Votruba
65abab80de Updated Rector to commit 5c1be93b80c3f7bfd8bd158ba0a55501a7acaefc
5c1be93b80 PHP 8.2 is supported (#3717)
2023-05-01 01:36:32 +00:00
Tomas Votruba
d8e30d57b8 Updated Rector to commit 8e1db4dad04d4abcbc36e8e8ddc58cc007877733
8e1db4dad0 [Ast] Improve AstResolver and ClassLikeAstResolver performance (#3714)
2023-04-30 04:05:26 +00:00
Tomas Votruba
a93a36635a Updated Rector to commit fb89e317c52fb8a16e2db18edb80172adb17014e
fb89e317c5 [TypeDeclaration] Add WhileNullableToInstanceofRector (#3680)
2023-04-24 11:18:26 +00:00
Tomas Votruba
c0a781b4f1 Updated Rector to commit 731baeb619c884b4f9716a3a67dba3e3d8ac8403
731baeb619 Improve NodeComparator performance (#3659)
2023-04-22 22:11:30 +00:00
Tomas Votruba
8f292260c6 Updated Rector to commit c935e91d0c13084537217f7b538a91d03b8bd4f5
c935e91d0c Improve LocalConstantFinder performance (#3652)
2023-04-22 16:24:45 +00:00
Tomas Votruba
425bfdde6c Updated Rector to commit 6374ccddd0facb7e8678a27c47e6749b0b02b3fe
6374ccddd0 Improve LocalMethodCallFinder performance (#3651)
2023-04-22 16:00:19 +00:00
Tomas Votruba
a03a19aeca Updated Rector to commit 273e4b43f1dbe84d426f4db5ab7ea9b0b1fea190
273e4b43f1 Use isBoolean() (#3591)
2023-04-08 16:37:58 +00:00
Tomas Votruba
3da290e4ab Updated Rector to commit dbb0e196a43d8c14a9de6abeef8fe081e95c51c2
dbb0e196a4 Revert all is* changes (#3584)
2023-04-08 13:25:07 +00:00
Tomas Votruba
9d60770133 Updated Rector to commit e66317aeb276bb0b544e7b4b55057c9dab5fbb73
e66317aeb2 fix cs (#3579)
2023-04-08 11:32:12 +00:00
Tomas Votruba
e7c7a40197 Updated Rector to commit 437cc5aa660262603343cdbb193e0a54abf9037e
437cc5aa66 Use isBoolean() (#3570)
2023-04-08 01:12:35 +00:00
Tomas Votruba
9038a0d99c Updated Rector to commit 1a91d04c5256e451c744eeb848aaa0182dd227c5
1a91d04c52 [CodeQuality] Add cast scalar support on ReturnTypeFromStrictScalarRector (#3544)
2023-04-01 10:14:17 +00:00
Tomas Votruba
3398669910 Updated Rector to commit 02df44373272ac230c2d8463e0d101a3ce927da2
02df443732 [NodeTraverser] Add NodeConnectingTraverser (#3531)
2023-03-28 16:34:39 +00:00