740 Commits

Author SHA1 Message Date
Tomas Votruba
3f51587157 Updated Rector to commit 3cc636540bccf0fc647ff13e1bea212c6bfa4962
3cc636540b [CodingStyle] Using in_array() instead of double loop on UseImportsRemover (#4467)
2023-07-09 23:56:37 +00:00
Tomas Votruba
994045415a Updated Rector to commit ad7d9b12ea0fa8bba78be8d0348daa6ecffe3abe
ad7d9b12ea [DX] Always init $this->hasChanged on Rector rule to ensure the flag is reset on same call on different file (#4454)
2023-07-09 11:49:50 +00:00
Tomas Votruba
54dbeae92c Updated Rector to commit ddc3d946366d72d91ef608b08ccd6f3e17eed830
ddc3d94636 [DX] Make use of SimpleParameterProvider::provideIntParameter() (#4409)
2023-07-03 15:00:57 +00:00
Tomas Votruba
872db0f1a4 Updated Rector to commit 9f6e80e2901da6caf3c77c4b7cb06cb384042238
9f6e80e290 [StaticTypeMapper] Remove parent attribute usage on FullyQualifiedNodeMapper (#4395)
2023-07-01 13:47:28 +00:00
Tomas Votruba
6981c70c9a Updated Rector to commit 9ed8c21b127cdd45a28307d5fc41668f867f4ef4
9ed8c21b12 [DeadCode] Remove findFirstPrevious() usage on UselessIfCondBeforeForeachDetector (#4388)
2023-07-01 09:41:56 +00:00
Tomas Votruba
a3231bb81d Updated Rector to commit 40a1f34b12c548f7be05f02a084be54e8374a58a
40a1f34b12 [Naming] Remove parent lookup on UseImportsResolver (#4367)
2023-06-27 17:32:34 +00:00
Tomas Votruba
ebab7418f4 Updated Rector to commit 6cc42eb33187a9b77357c1f459d724c8aa1eb4f7
6cc42eb331 [StaticTypeMapper] Remove parent attribute usage on FullyQualifiedObjectType (#4347)
2023-06-25 17:06:09 +00:00
Tomas Votruba
f7561073a3 Updated Rector to commit beca17df3f02d9a2a7800e9b238bac3b9c862498
beca17df3f [CodingStyle] Remove parent attribute on NameImporter (#4346)
2023-06-25 16:52:29 +00:00
Tomas Votruba
f835cb735b Updated Rector to commit a01259fbabdd5e7c9a5ee021b619a9305037c736
a01259fbab [CodingStyle] Reduce parent attribute usage on NameImporter take 2 (#4345)
2023-06-25 16:45:19 +00:00
Tomas Votruba
46e1669e6a Updated Rector to commit 53e4e9f1e939da3cc6aa9d8c7172cd17e8550d8e
53e4e9f1e9 [CodingStyle] Reduce parent attribute usage on NameImporter (#4344)
2023-06-25 16:22:08 +00:00
Tomas Votruba
9d08d136fd Updated Rector to commit dfef34df2f634b87afe6940cc4671018fb81e26e
dfef34df2f Bump nikic/php-parser to 4.16.0 (#4343)
2023-06-25 16:18:38 +00:00
Tomas Votruba
f41e5dc13b Updated Rector to commit df459e711ae5bd8f359df40fbef863cc386bf107
df459e711a Handle AlwaysRememberedExpr in deep Expr (#4310)
2023-06-21 09:44:12 +00:00
Tomas Votruba
084bcaaa18 Updated Rector to commit ad65e0445c0a68393d7031067f095ea9f8b1cbde
ad65e0445c [CodingStyle] Remove parent lookup on ShortNameResolver (#4260)
2023-06-17 18:24:04 +00:00
Tomas Votruba
d3f1b27d37 Updated Rector to commit 96dc30676a52c8c1b66b664bcdd76b88f5540514
96dc30676a [Performance] Remove findFirst on AliasUsesResolver and UsedImportsResolver (#4259)
2023-06-17 18:02:56 +00:00
Tomas Votruba
38260ff6c5 Updated Rector to commit 8cb7e850459ec7c5685e718a772a5c89db5700c2
8cb7e85045 [CodingStyle] Remove parent lookup on AliasUsesResolver (#4257)
2023-06-17 16:01:00 +00:00
Tomas Votruba
6630b94daa Updated Rector to commit 06d1d0817a56a9422363beaf2fded111baa92514
06d1d0817a [CodingStyle] Remove parent lookup on UsedImportsResolver (#4245)
2023-06-16 14:53:58 +00:00
Tomas Votruba
d793888f8a Updated Rector to commit 53c6c5fcaf92b3ff40b6f45e476ff981b9028e95
53c6c5fcaf Remove Kind from doc mapper, as used just once (#4234)
2023-06-16 03:34:15 +00:00
Tomas Votruba
4c28e357ca Updated Rector to commit 20ec11e73d8998f9ad7533c8f179ee7be8e2abdf
20ec11e73d [Docblock] Move DocBlockUpdater service usage from AbstractRector to PhpDocTypeChanger (#4215)
2023-06-14 04:39:10 +00:00
Tomas Votruba
5712e3dd40 Updated Rector to commit b4eb417407360b419e71eaa7609209a1597441e2
b4eb417407 Remove ReturnArrayClassMethodToYieldRector, add to PHPUnit Rector (#4213)
2023-06-13 16:24:24 +00:00
Tomas Votruba
887ce448ac Updated Rector to commit a86eb69c59af5dd1e3ea3b7ab994b017dcccd6b4
a86eb69c59 Move PreferThisOrSelfMethodCallRector to PHPUnit rector package, to handle exact cases (#4194)
2023-06-12 11:51:15 +00:00
Tomas Votruba
503a6059f8 Updated Rector to commit a8922f7431c9c9188be501107ee7819e0130da4c
a8922f7431 skip temporarily match + throws downagrade in symfony/console, very unlikely to run
2023-06-11 23:01:39 +00:00
Tomas Votruba
3313a231b7 Updated Rector to commit bb609b28e327ca1fb7827b6bc548013d19a2cf4e
bb609b28e3 [Core] Always reset stopTraversal to false on next Rector visit (#4182)
2023-06-11 14:17:34 +00:00
Tomas Votruba
f82e30a026 Updated Rector to commit ae874efa148e6d5a031503892a6307824b4d7003
ae874efa14 Remove SourceLocatorProviderInterface as unused (#4126)
2023-06-08 22:00:17 +00:00
Tomas Votruba
fb04ea18b8 Updated Rector to commit 71dc336750afb61b4766bad5c040ffd7a77f4741
71dc336750 [CodingStyle] Skip countable object on CountArrayToEmptyArrayComparisonRector (#4108)
2023-06-07 14:26:11 +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
1f621e91a4 Updated Rector to commit 88eed987cc361166359c158ffd22d264d165aa8b
88eed987cc Ensure check isFirstClassCallable() before node->getArgs() on CallLike (#4049)
2023-06-02 12:32:12 +00:00
Tomas Votruba
2e072dd15a Updated Rector to commit cfccdd090b640d7b63592eca1744e0582db19830
cfccdd090b [CodingStyle] Skip first class callable on UnSpreadOperatorRector (#4041)
2023-06-01 23:56:12 +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
74fee33fad Updated Rector to commit 5979f30756eca7e8f2736514451d5c7bdfed50ce
5979f30756 Remove removeNode() from FuncGetArgsToVariadicParamRector (#4021)
2023-05-29 21:33:59 +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
b6aa01ccb7 Updated Rector to commit 8f24c73f1894356dd9ad3745924d027fa65a5602
8f24c73f18 Remove PARENT_NODE from CommentsMerger (#4011)
2023-05-29 08:09:04 +00:00
Tomas Votruba
969127f9a6 Updated Rector to commit f429e2811c97689001f45c420d1d674322d00822
f429e2811c Remove use imports directly (#4008)
2023-05-29 06:32:46 +00:00
Tomas Votruba
ffca1acc2d Updated Rector to commit e8151293d5a25a776c73dd73eeed461c26dc7e6b
e8151293d5 Remove PARENT_NODE from CatchExceptionNameMatchingTypeRector (#3990)
2023-05-27 10:47:14 +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
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
2a68777a50 Updated Rector to commit d99713c7d55f25612440948b8a85b5b99e0b0e11
d99713c7d5 [CodingStyle] Remove parent attribute on NewlineAfterStatementRector (#3967)
2023-05-25 15:39:32 +00:00
Tomas Votruba
c3d9ce9a50 Updated Rector to commit d279f71da7380aa7a55356c81f798aa56c7644f3
d279f71da7 [CodingStyle] Remove Else as next stmt on NewlineAfterStatementRector (#3966)
2023-05-25 15:31:05 +00:00
Tomas Votruba
48f64cd534 Updated Rector to commit eb463524bc550781d37cb170c416329bfe727992
eb463524bc Remove PARENT_NODE from CountArrayToEmptyArrayComparisonRector (#3965)
2023-05-25 15:20:14 +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
92a1548c49 Updated Rector to commit 8e3620b0fb37f25a4966d9c07b0a55c02814f89c
8e3620b0fb Refactor from PARENT_NODE in PostIncDecToPreIncDecRector (#3962)
2023-05-25 14:00:24 +00:00
Tomas Votruba
94c1b64b7e Updated Rector to commit 18ac565714b7b66506a901ed4787d1ffbdd0af2d
18ac565714 Refactor from PARENT_NODE in EncapsedStringsToSprintfRector (#3960)
2023-05-25 13:47:07 +00:00
Tomas Votruba
a1e2ba76d0 Updated Rector to commit 2e80e00913eacfcfded3af426cc7691a58d7f886
2e80e00913 Refactor from PARENT_NODE in AddArrayDefaultToArrayPropertyRector (#3951)
2023-05-24 13:20:51 +00:00
Tomas Votruba
bddc5333e6 Updated Rector to commit 11e6796c0044a9217aed0c725e4b0f7c5767cb22
11e6796c00 Remove PARENT_NODE from FuncGetArgsToVariadicParamRector (#3949)
2023-05-24 13:08:24 +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
215231b596 Updated Rector to commit 112e490e3ca0d5949c97189c31fd4aef8833cfc1
112e490e3c Remove PARENT_NODE from CatchExceptionNameMatchingTypeRector (#3929)
2023-05-22 14:09:12 +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
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
dca2603280 Updated Rector to commit f5d809ca431215d512bb0ba3894bab4543afb396
f5d809ca43 [CodingStyle] Remove AddFalseDefaultToBoolPropertyRector, as works with unrelaible docblocks (#3856)
2023-05-15 12:19:44 +00:00
Tomas Votruba
33a05b3e73 Updated Rector to commit 07a7876d8a4c93097c966730acbc4aeb7d9e1765
07a7876d8a [CodingStyle] Remove OrderAttributesRector, as rather coding standard and does not have specific PSR example (#3838)
2023-05-14 13:22:44 +00:00