15829 Commits

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