Commit Graph

2245 Commits

Author SHA1 Message Date
Tomas Votruba
6f867b1fcb Updated Rector to commit ae64ccd4e8ac4d3fbd956e8a60de1d27c598cb8f
ae64ccd4e8 [Traverser] Utilize statementDepth attribute on StmtKeyNodeVisitor to fill stmt_key in root of stmts (#4104)
2023-06-07 08:54:42 +00:00
Tomas Votruba
78750eb011 Updated Rector to commit a43321f493fe7772a427402c8bb15959fc24ca8b
a43321f493 [NodeTraverser] Traverse fill stmt_key after FileWithoutNamespaceNodeTraverser on PHPStanNodeScopeResolver (#4103)
2023-06-07 08:03:23 +00:00
Tomas Votruba
189167959e Updated Rector to commit 701278e9882f33c2977753be99b08dd7aaf93997
701278e988 Remove node removing services, cleanup (#4093)
2023-06-06 12:07:27 +00:00
Tomas Votruba
63ba316fef Updated Rector to commit d54d8b18a92f4248605bc90b5af2b2a22c39a93e
d54d8b18a9 Hook NewInInitializerRector to a Class_ node (#4088)
2023-06-05 15:06:32 +00:00
Tomas Votruba
bc7911e5d1 Updated Rector to commit a61fbf265d2995453ad8d9f12b6bb00ff1937162
a61fbf265d Remove removeNode() from couple rules (#4083)
2023-06-05 13:42:47 +00:00
Tomas Votruba
191b6c06a0 Updated Rector to commit efc3cf31ae7a14367f7d2f5b73838f5ebeebb064
efc3cf31ae [Core] Apply CreatedByRuleDecorator on is_int() on AbstractRector (#4077)
2023-06-05 10:03:19 +00:00
Tomas Votruba
917ce32d7a Updated Rector to commit ddcc807ffcdf24c49889125682d1bcb223387d09
ddcc807ffc Make use of REMOVE_NODE return constant in refator() method (#4075)
2023-06-05 09:32:57 +00:00
Tomas Votruba
ee021e37ea Updated Rector to commit 21d43cfb3d62563f3f73424d2bdf36136056617d
21d43cfb3d Add REMOVE_NODE support to refactor() direct call (#4073)
2023-06-05 08:01:06 +00:00
Tomas Votruba
633f196150 Updated Rector to commit 7cde4132f7705a0f941867d66c909abd114e758d
7cde4132f7 Revert [Core] No need reindex FileWithoutNamespace on beforeTraverse (#4043) (#4044)
2023-06-02 05:54:26 +00:00
Tomas Votruba
cbde46307b Updated Rector to commit 90b1f9fdd37038b82df9c1b14fd2114b3075468c
90b1f9fdd3 [Core] No need reindex FileWithoutNamespace on beforeTraverse (#4043)
2023-06-02 03:13:17 +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
5e8e8dbc29 Updated Rector to commit 46d2aacd80260f0d6ff7ed0454100be3ed279b63
46d2aacd80 [Core] Ensure define  before refactor() called to avoid changed during refactor (#4031)
2023-05-30 13:37:00 +00:00
Tomas Votruba
a0204cf9f1 Updated Rector to commit b37e2733e1c393bc802d0c378abfa3f3f4d87068
b37e2733e1 [Core] Ensure reindex node attributes even on re-print (#4030)
2023-05-30 13:30:54 +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
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
5f824909cb Updated Rector to commit 79ffda7d8537ca6b04e14082bd9f0091fb97215d
79ffda7d85 Remove PARENT_NODE from CountOnNullRector (#3924)
2023-05-22 13:31:04 +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
c6385617d2 Updated Rector to commit a4d6d414fb2f6ce98c792178895ab01664fab358
a4d6d414fb [TypeDeclaration] Add BoolReturnTypeFromStrictScalarReturnsRector (#3898)
2023-05-19 15:03:57 +00:00
Tomas Votruba
f59444dfd6 Updated Rector to commit 9c74d611dc8567de47658624f6f0d0d4792f21ee
9c74d611dc [Core] Change ChangedNodeScopeRefresher modifier to private on AbstractRector (#3827)
2023-05-13 18:59:47 +00:00
Tomas Votruba
8afa5f961e Updated Rector to commit 074b1781b3fa7c7e23470c57ab85c0bd5fe0bfd2
074b1781b3 Remove RemoveUnusedVariableAssignRector, as could be breaking code in order of excution and hard to do reliable (#3793)
2023-05-11 07:56:32 +00:00
Tomas Votruba
653075e6d9 Updated Rector to commit d87113675bbaaf8de972069779b48f706d2c73d6
d87113675b Ease finding slow files (#3785)
2023-05-10 10:08:41 +00:00
Tomas Votruba
da6f698ff7 Updated Rector to commit 14fa8c914b12bfc6a4112d77e03057dab9b90cd4
14fa8c914b Cleanup phpstan errors (#3748)
2023-05-06 22:11:26 +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
f5640c1359 Updated Rector to commit 5e5681d9edbb438b5782b45fde6e88650aa3843f
5e5681d9ed [NodeRemover] Use return null after ->removeNode() (#3558)
2023-04-03 17:20:08 +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
Tomas Votruba
2955c40fce Updated Rector to commit 6c8aa924ca0e92555f8c8cf30b01ff0ff4fff052
6c8aa924ca [Core] Remove ParentConnectingVisitor usage on AbstractRector (#3519)
2023-03-25 16:53:21 +00:00
Tomas Votruba
7d0f151a40 Updated Rector to commit a2cd7283fbf2d6b2904016c51e3f4a545caa0256
a2cd7283fb Typo fix comment php 7.3 compat on rector workflow (#3432)
2023-03-01 13:00:30 +00:00
Tomas Votruba
66cc09e8b6 Updated Rector to commit d118ae38e265476684bcf566b87301cca5716ed9
d118ae38e2 Use phpstan-deprecation-rules (#3330)
2023-02-02 09:24:12 +00:00
Tomas Votruba
162b97da87 Updated Rector to commit 33527d4e8d3b58bfebbac94330fd59f5be08b2b2
33527d4e8d [Printer] Move handle mix php+html to BetterStandardPrinter (#3310)
2023-01-27 08:27:34 +00:00
Tomas Votruba
b0a48d1e0a Updated Rector to commit dda7cdb03aa2b273af0ce35e1b195e03d0e3d3d2
dda7cdb03a [Printer] Use <= 0 check for getStartTokenPos() for current node availability on MixPhpHtmlDecorator (#3308)
2023-01-26 17:16:47 +00:00
Tomas Votruba
bbb27b399f Updated Rector to commit 828ec4e66ed7118e0cc6315df0190941d7db1c72
828ec4e66e [Printer] Handle return array of nodes with InlineHTML (#3304)
2023-01-25 19:21:39 +00:00
Tomas Votruba
be2e22ede3 Updated Rector to commit 2c353227e499072689cbb22d83b3483b3015025f
2c353227e4 [Printer] Handle Add Node after Nop statement inlineHTML (#3303)
2023-01-24 15:30:51 +00:00
Tomas Votruba
3caa257b2c Updated Rector to commit 1ab342a4ee4bf282bb436c636c401d37a9476d23
1ab342a4ee [Core] Use Original node to pull Scope on AbstractScopeAwareRector (#3295)
2023-01-18 12:08:19 +00:00
Tomas Votruba
99023d8977 Updated Rector to commit 240fa27dca3e215bdfea9b329558d495ea344aa0
240fa27dca  Move Reprint previous node of first node early to NodeAddingPostRector, mix html+php take 4 (#3290)
2023-01-15 18:55:14 +00:00
Tomas Votruba
2ba10ad8e9 Updated Rector to commit 410e939ede14803bbdfc9688065d2a03a0d246d7
410e939ede  [Core] [Printer] Ensure empty php tag init on original node not re-printed  (#3284)
2023-01-14 20:51:32 +00:00
Tomas Votruba
788f8c3fea Updated Rector to commit d9ee43c28dd0718bd2a2528a4313be2c6199666d
d9ee43c28d [CodeQuality] Handle mix HTML+PHP on ForRepeatedCountToOwnVariableRector (#3282)
2023-01-14 08:08:29 +00:00
Tomas Votruba
764b0a2692 Updated Rector to commit cb5b01223d46272004e947f122ae1e36d516f83a
cb5b01223d [automated] Re-Generate Nodes/Rectors Documentation (#3259)
2023-01-01 00:36:31 +00:00
Tomas Votruba
04232cb88d Updated Rector to commit d80ddd193deeebd47e765dfb58d300faaedc25b4
d80ddd193d [CodeQuality] Handle possible crash on ParametersAcceptorSelector::selectSingle() on OptionalParametersAfterRequiredRector (#3192)
2022-12-13 12:09:37 +00:00
Tomas Votruba
83accd4a98 Updated Rector to commit efd09bbb400b2382be39effc206551e6964fa5ea
efd09bbb40 Compatibility with BetterReflection 6.x on ClassFromEnumFactory (#3150)
2022-12-04 13:15:14 +00:00
Tomas Votruba
ff75474d25 Updated Rector to commit 39f43c01cbc34a8bb064f056d39f1b8d2bd7a152
39f43c01cb Use Symfony ~6.1.x to avoid crash on update vendor-patch (#3134)
2022-12-01 14:10:32 +00:00
Tomas Votruba
e7ef0c8412 Updated Rector to commit 1e8ffcc6a113ae4ad2a3e04b86d2f7ef22bbac01
1e8ffcc6a1 [Php80] Add ClassOnThisVariableObjectRector (#3093)
2022-11-25 23:37:32 +00:00
Tomas Votruba
a5406b6411 Updated Rector to commit eddc376c77b1211e055e7cdbc8214c3d1dae3d8a
eddc376c77 [Core] Remove RectifiedNode value object for RectifiedAnalyzer (#3079)
2022-11-20 12:34:31 +00:00
Tomas Votruba
d085266247 Updated Rector to commit a1df08d2dfe392f42b58288c47646e2a565851dc
a1df08d2df [Core] Connect Expression parent Node on transform Stmt to Expr (#3071)
2022-11-17 10:57:22 +00:00
Tomas Votruba
c976b41d9f Updated Rector to commit 2be958b4e4db947c63777443eafb886274a5c7c7
2be958b4e4 [Core] Fix resolve scope handling when parent Node just re-printed (#3056)
2022-11-12 17:49:29 +00:00
Tomas Votruba
726ca40b8d Updated Rector to commit 64f4a55aa43b1197247637192b04bc48c7a77877
64f4a55aa4 [Core] Use parent attribute check instead of origNode for check update and connect parent node after refactor (#3054)
2022-11-12 03:26:34 +00:00
Tomas Votruba
fac0875c1b Updated Rector to commit fced569c7d60f32dbe3bc02e7ba8b64dd5aeef0f
fced569c7d [Core] Improve performance: only update and connect parent Node when different Node (#3044)
2022-11-11 11:49:04 +00:00
Tomas Votruba
04b65fc52f Updated Rector to commit 4d931030cb41813a2cfc90d5f7f7a1825ae87686
4d931030cb [Core] Improve performance: verify consecutive execute same Rector Rule when Original Node is Null (#3047)
2022-11-11 11:48:30 +00:00
Tomas Votruba
e974c922b9 Updated Rector to commit b31bb42c902e6de649cb1228579be72023c171ec
b31bb42c90 [Php81] Register uniqid function on NullToStrictStringFuncCallArgRector (#3045)
2022-11-11 11:47:05 +00:00