Commit Graph

1197 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 fc28a000c6 Updated Rector to commit cdc9e6b6d8ce2446e8860016997ad37e8d3b7d44
cdc9e6b6d8 Remove ArrayKeysAndInArrayToArrayKeyExistsRector as narrow, does not check variable usage and might be on purpose (#4084)
2023-06-05 13:46:42 +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 0a26126b5a Updated Rector to commit b60faa4203092b57ea4d1d2f977b46334adc2e51
b60faa4203 Remove TargetRemoveClassMethodRector, as IDE specific (#4076)
2023-06-05 09:37:45 +00:00
Tomas Votruba 5edc8437c3 Updated Rector to commit 0e9192f70cc10e4684adec85a0ab5f67c6afcad3
0e9192f70c Remove deprecated UnionTypesRector and NarrowUnionTypeDocRector, use strict-based rules from TypeDeclaration set instead (#4069)
2023-06-04 21:38:22 +00:00
Tomas Votruba 18f8207b59 Updated Rector to commit 861022a70bd9f9c8b91f20c7dfacb0d297d33e9a
861022a70b Remove RemoveAlwaysTrueConditionSetInConstructor, as overly specific and not practical; better handle with PHPStan (#4065)
2023-06-04 17:57:18 +00:00
Tomas Votruba f0c9d40cc2 Updated Rector to commit 106bc8ed2efbf98e99c22d6098a78ec2d6588c58
106bc8ed2e Remove AttributeCompatibleAnnotationRector, as only for one-time migration of private project, not suitable for general use (#4064)
2023-06-04 17:52:08 +00:00
Tomas Votruba 335ab50008 Updated Rector to commit 2d99c8b3661934f33155ddb5d46e62c7ba14715a
2d99c8b366 Remove removeNode() from InlineConstructorDefaultToPropertyRector (#4062)
2023-06-04 17:26:50 +00:00
Tomas Votruba 7b17dd2d5b Updated Rector to commit 02b93319906ffa9842cbab8f80d58d8b5576cf43
02b9331990 [Traverser] Add BreakingRemovalGuardNodeVisitor to reduce parent attribute usage on BreakingRemovalGuard (#3978)
2023-06-04 10:46:22 +00:00
Tomas Votruba cbde507496 Updated Rector to commit 919c052d712c4069a6b0c244744dfd124fb565eb
919c052d71 [Printer] Remove BetterStandarPrinter::cleanSurplusTag() and cleanEndWithPHPOpenTag() (#4061)
2023-06-04 09:14:48 +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 936365906d Updated Rector to commit 1d8b12dc022dc4ff9c9c26a2fc1ea409027d271b
1d8b12dc02 Remove NormalizeNamespaceByPSR4ComposerAutoloadRector as only moves files to namespaces, does not update any class referenes; better use IDE here (#4057)
2023-06-03 16:37:32 +00:00
Tomas Votruba 12850de413 Updated Rector to commit 203be2b3076a4e7f2f80cee721aa20186868a604
203be2b307 skip tracy from downgrade one
2023-06-03 16:26:26 +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 3dc5be2274 Updated Rector to commit 92ff716761e19c7f30bd68065af7eeefac0480de
92ff716761 Improve string support in Doctrine Annotations (#3645)
2023-06-02 09:42:16 +00:00
Tomas Votruba 8f92523b3a Updated Rector to commit 965b5f72045e3a94adf1eab83accafb52bfbe92a
965b5f7204 [CodeQuality] Exclude first class callable from IntvalToTypeCastRector (#7962) (#4040)
2023-06-01 22:33:20 +00:00
Tomas Votruba 6ffdc0c6a4 Updated Rector to commit 89fc9dbd9c1b6e1feb35a777926a443db01b0824
89fc9dbd9c Remove unused BinaryOpTreeRootLocator (#4038)
2023-06-01 14:34:35 +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 c8207cff85 Updated Rector to commit b84fe9524aa20e200f743f13f6925d93225c6280
b84fe9524a [Php56] Reduce origNode check on UndefinedVariableResolver (#4033)
2023-05-31 08:33:32 +00:00
Tomas Votruba 089eca6986 Updated Rector to commit b84fe9524aa20e200f743f13f6925d93225c6280
b84fe9524a [Php56] Reduce origNode check on UndefinedVariableResolver (#4033)
2023-05-31 00:18:13 +00:00
Tomas Votruba 3342a558a3 Updated Rector to commit b84fe9524aa20e200f743f13f6925d93225c6280
b84fe9524a [Php56] Reduce origNode check on UndefinedVariableResolver (#4033)
2023-05-30 20:19:22 +00:00
Tomas Votruba 95843bd31e Updated Rector to commit 73c1ac45e78b2e8b091f7a0cbcc0b54b9b24bb42
73c1ac45e7 Make use of key to remove property (#4032)
2023-05-30 14:29:35 +00:00
Tomas Votruba 977bb7a99e Updated Rector to commit 46d2aacd80260f0d6ff7ed0454100be3ed279b63
46d2aacd80 [Core] Ensure define  before refactor() called to avoid changed during refactor (#4031)
2023-05-30 14:11:13 +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 36bff0a577 Updated Rector to commit 105df5f485c8e3b2e9b75320555a32b5325186b5
105df5f485 Remove NewToMethodCallRector as unused core and no other extension, niche to use, better handle by PHPStorm (#4029)
2023-05-30 13:20:44 +00:00
Tomas Votruba df2ad70dd3 Updated Rector to commit 4c782243fdb6b03474faa0076800048cb3ef0de9
4c782243fd Remove ChangeReadOnlyPropertyWithDefaultValueToConstantRector as overly detailed checks, better use PHPStan and refactor individually (#4028)
2023-05-30 13:09:27 +00:00
Tomas Votruba 6f79fcfb1e Updated Rector to commit e2213f21762d74946a34197921aa905623493e8c
e2213f2176 Remove unused addNodeAfterNode(), return nodes instead (#4023)
2023-05-30 08:41:10 +00:00
Tomas Votruba 84d2957596 Updated Rector to commit 3dfe7f9c11dc0ea75ba73da6f4639c1718843dc2
3dfe7f9c11 [Test] Enable displayDetailsOnTestsThatTriggerWarnings to true in tests to show warning (#4020)
2023-05-29 14:21:02 +00:00
Tomas Votruba 8d722f5b92 Updated Rector to commit 3dfe7f9c11dc0ea75ba73da6f4639c1718843dc2
3dfe7f9c11 [Test] Enable displayDetailsOnTestsThatTriggerWarnings to true in tests to show warning (#4020)
2023-05-29 14:02:39 +00:00
Tomas Votruba 4c71bd6171 Updated Rector to commit 4ea7d0f477ff10755172869818056824b2d42dcd
4ea7d0f477 [DeadCode] Clean up PHPStan notice on ComplexNodeRemover::processRemoveParamWithKeys() (#4018)
2023-05-29 13:42:03 +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 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 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 4af8e96d37 Updated Rector to commit 330e1c5845ca7a569840384fa6eb3e730e13df71
330e1c5845 Update dependencies (#3984)
2023-05-27 09:31:07 +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 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 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 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 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 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 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 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 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 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 c6385617d2 Updated Rector to commit a4d6d414fb2f6ce98c792178895ab01664fab358
a4d6d414fb [TypeDeclaration] Add BoolReturnTypeFromStrictScalarReturnsRector (#3898)
2023-05-19 15:03:57 +00:00