Commit Graph

957 Commits

Author SHA1 Message Date
Tomas Votruba 282e5517d7 Updated Rector to commit ae3608b3d6464b63a041dd5e779c7b4e8f4cedb6
ae3608b3d6 Remove ununnecesary markAsChanged() in PhpDocTypeChanger, print docblock in explicit way when changed (#4983)
2023-09-11 09:08:21 +00:00
Tomas Votruba 553b67b890 Updated Rector to commit 57ec646b63b0c7804df44fd67990b41d83d56c40
57ec646b63 Make PhpDocINfo::removeByType() return bool to inform about changed node (#4979)
2023-09-11 07:37:02 +00:00
Tomas Votruba f73bcd4ef8 Updated Rector to commit c97e4ffb0534d388b5f51508491916f54d3f342a
c97e4ffb05 [Naming] Remove matchesStringName() check completely from NodeNameResolver, including endsWith() method - use getName() and compare directly instead (#4954)
2023-09-09 22:49:40 +00:00
Tomas Votruba 7540a5e283 Updated Rector to commit 9a322af593a3ed9de20a535f613ed25e12ecc823
9a322af593 BC: Separated regex matching in NodeNameResolver->isName() (#4951)
2023-09-09 14:08:25 +00:00
Tomas Votruba 28c16a1c00 Updated Rector to commit d5f399eee5709932b579d41e3799c3097bbc101f
d5f399eee5 [DeadCode] Remove @return void on return self on RemoveUselessReturnTagRector (#4894)
2023-09-02 15:59:59 +00:00
Tomas Votruba 326e84f967 Updated Rector to commit 7078b51a7cfe02d85474a38192caf797beedcfd6
7078b51a7c [TypeDeclaration] Add ReturnTypeFromStrictFluentReturnRector (#4890)
2023-09-01 11:10:35 +00:00
Tomas Votruba 66f7957611 Updated Rector to commit 130f07b3da5cd6024b1e03265f75e70666a95473
130f07b3da [DeadCode] Skip used by trait inside Closure on RemoveUnusedPrivateMethodRector (#4773)
2023-08-11 17:24:11 +00:00
Tomas Votruba e36ad5d27c Updated Rector to commit 6923113ff2994cfb0c76298c7dc7d038655fbc95
6923113ff2 [DeadCode] Skip used by trait on RemoveUnusedPrivateMethodRector (#4770)
2023-08-11 13:30:03 +00:00
Tomas Votruba fd27dcf231 Updated Rector to commit a4bc873216f6d468524f95ca2746224c48311c2e
a4bc873216 cs
2023-08-10 12:16:13 +00:00
Tomas Votruba 852f522cbd Updated Rector to commit f4b71a5406b7a79e7fa09659c6a1ca0014a558e1
f4b71a5406 [TypeDeclaration] Use native type detection instead of docblock on AssignToPropertyTypeInferer for TypedPropertyFromAssignsRector (#4754)
2023-08-10 12:12:18 +00:00
Tomas Votruba 813a09001a Updated Rector to commit 0013604ebd8bf101ca9bd013a56d7e831bcdf51e
0013604ebd [DX] Remove RemoveJustPropertyFetchRector as used for one time job, not practical for general use (#4661)
2023-08-05 23:36:26 +00:00
Tomas Votruba aae549741f Updated Rector to commit 0cb3fd0feb464b4568e07607a05c794637aa2862
0cb3fd0feb [Php73] Handle crash Type Error on JsonThrowOnErrorRector (#4626)
2023-08-01 10:55:14 +00:00
Tomas Votruba 5a842dbce3 Updated Rector to commit c1e03db126ca74dc518aa4a0c9a04715e7f1cd44
c1e03db126 [cs] Re-run ECS dev version to try out regression (#4595)
2023-07-25 08:52:39 +00:00
Tomas Votruba 37853424d5 Updated Rector to commit 715a047989a3b2def0f9e62879c906da61e39cc6
715a047989 Skip description on same line, remove on next line as based on phpdoc-parser in RemoveUselessParamTagRector (#4551)
2023-07-20 12:07:25 +00:00
Tomas Votruba fe7bab8799 Updated Rector to commit c0983f1000c1ca67b23d6da0c7f43eede90d14db
c0983f1000 Skip coalsce assign in RemoveUnusedPrivatePropertyRector (#4491)
2023-07-12 09:53:27 +00:00
Tomas Votruba 802b78e28b Updated Rector to commit dd6a1fb651c07c558d28a9dcf72ff1248b2c0614
dd6a1fb651 [DeadCode] Skip property not exists on RemoveTypedPropertyDeadInstanceOfRector (#4481)
2023-07-11 21:50:58 +00:00
Tomas Votruba 2d46a8afb9 Updated Rector to commit 5b64258e7c9628d80fa3247a698c646def55dca4
5b64258e7c [DeadCode] Skip used defined in extract() on RemoveNonExistingVarAnnotationRector (#4468)
2023-07-10 09:23:28 +00:00
Tomas Votruba 2d4dfa7604 Updated Rector to commit ce03029084e1d8c860de15ee6fcfef8f6f35dbdb
ce03029084 [DeadCode] Remove RemoveJustVariableAssignRector as often done on purpose or with side effect (#4450)
2023-07-09 10:36:52 +00:00
Tomas Votruba 0c4f4be946 Updated Rector to commit 33019ba2ff8abfa658b998db5a7ca88f2fa87da3
33019ba2ff [MysqlToMysqli] Deprecate set, as dangerous to use, better handle manually (#4448)
2023-07-09 09:46:05 +00:00
Tomas Votruba bea2685039 Updated Rector to commit 2f1d4d3e66e896531cbfe6958307b451e972a624
2f1d4d3e66 Make RemoveNonExistingVarAnnotationRector simpler, skip compact() check as not generic (#4439)
2023-07-08 21:56:17 +00:00
Tomas Votruba 8028d6a7ce Updated Rector to commit ac63f2a6261963e8a7d353474b7c20311a72ded3
ac63f2a626 [NodeTypeResolver] Remove type detection from parent FunctionLike docblock on ParamTypeResolver (#4441)
2023-07-08 21:50:41 +00:00
Tomas Votruba 7912b23087 Updated Rector to commit 2f1d4d3e66e896531cbfe6958307b451e972a624
2f1d4d3e66 Make RemoveNonExistingVarAnnotationRector simpler, skip compact() check as not generic (#4439)
2023-07-08 21:50:21 +00:00
Tomas Votruba d53aabefd9 Updated Rector to commit 1d0feb251132d3b766945bc80d8f914c5279277f
1d0feb2511 [DX] Lower readonly PropertyManipulator complexity (#4429)
2023-07-06 21:07:00 +00:00
Tomas Votruba d16d5ab29c Updated Rector to commit 3bd0e9faa5e015df82ccf511e248b5ca3d168b33
3bd0e9faa5  [DeadCode] Skip used as closure on RemoveUnusedPrivateMethodRector  (#4413)
2023-07-03 16:48: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 1d37efe8d7 Updated Rector to commit 8c9d630a27e6b3c3b76b31bd8ce96db14c7e8800
8c9d630a27 [ReadWrite] Reduce parent lookup on ReadWritePropertyAnalyzer (#4387)
2023-06-30 19:13:32 +00:00
Tomas Votruba 2528c0753a Updated Rector to commit 5e20015ec5d8002b9a11f8bfa7c70f4f2a5b5c5d
5e20015ec5 [Php81] Skip named constructor on ReadOnlyPropertyRector (#4359)
2023-06-27 06:35:24 +00:00
Tomas Votruba 950bd50ad1 Updated Rector to commit 392898c5de7e25ceeb83072eb951939ddf1c7150
392898c5de [Performance] Remove NODES_TO_MATCH constant on RemoveNonExistingVarAnnotationRector (#4267)
2023-06-18 03:50:55 +00:00
Tomas Votruba 127dce50b1 Updated Rector to commit 906a774db471fc98867c6e88a211386a829418ea
906a774db4 [DeadCode] Remove parent lookup on IsClassMethodUsedAnalyzer::isInArrayMap() (#4256)
2023-06-17 15:39:12 +00:00
Tomas Votruba 2042d4bd59 Updated Rector to commit 6488506a36f117e947056eff9f27157a82bf102b
6488506a36 [DeadCode] Remove parent lookup on DeadReturnTagValueNodeAnalyzer (#4235)
2023-06-16 03:38:29 +00:00
Tomas Votruba 3719bec0c0 Updated Rector to commit d3a95b2fc177a4fe0ecfeb095e2c9a3b059c972d
d3a95b2fc1 [DeadCode] Remove Assign and AssignRef as node types on RemoveNonExistingVarAnnotationRector (#4209)
2023-06-13 01:47:53 +00:00
Tomas Votruba c1782af768 Updated Rector to commit 0a36378788fcf58a41deecab7fb9b3228f077264
0a36378788 [DeadCode] Remove parent lookup on ControllerClassMethodManipulator (#4204)
2023-06-12 20:11:25 +00:00
Tomas Votruba f45714304b Updated Rector to commit a9efd7240e38596d09eedbea3670ee20e32e0d1f
a9efd7240e [DeadCode] Remove direct return STOP_TRAVERSAL on RemoveDeadInstanceOfRector (#4188)
2023-06-12 09:17:29 +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 01557664e6 Updated Rector to commit d541d1a77e5e140bf12d4b71c9c9f98a3852a366
d541d1a77e [Doc] Fix documentation code example of RemoveTypedPropertyDeadInstanceOfRector (#4168)
2023-06-11 00:39:52 +00:00
Tomas Votruba 99469d703d Updated Rector to commit a394e5ea44ef09812ec1224aa0f402a483400d73
a394e5ea44 Split instance of check to 2 rules (#4165)
2023-06-10 18:53:37 +00:00
Tomas Votruba 53778ac6ff Updated Rector to commit 77aeaa4dcc2fc99070999af7a28d17c4d078a4b5
77aeaa4dcc Remove RemoveEmptyMethodCallRector as better handled by PHPStan (#4161)
2023-06-10 13:02:37 +00:00
Tomas Votruba 9d288b9b77 Updated Rector to commit 0fe5ee02fe3527bff3a1cd1c10508e2148ea8031
0fe5ee02fe Remove PARENT_NODE from ReadOnlyPropertyRector (#4150)
2023-06-10 07:01:52 +00:00
Tomas Votruba 276b450e8a Updated Rector to commit bc61ac2b0a95c93a557ccfe4f371f361ec09ab2c
bc61ac2b0a Remove parent node from StringClassNameToClassConstantRector (#4145)
2023-06-10 06:35:34 +00:00
Tomas Votruba a48c21e135 Updated Rector to commit ebfe96b4e08b26439c2341cd45e87a7bc5f314fb
ebfe96b4e0 Drop AttributeKey::SCOPE in ClassMethodReturnTypeOverrideGuard (#4144)
2023-06-09 17:30:44 +00:00
Tomas Votruba 945b0d7947 Updated Rector to commit ea26fd7427e4c1d0a4032a9c86410ef41c32569b
ea26fd7427 Drop AttributeKey::SCOPE in AlwaysStrictScalarExprAnalyzer (#4139)
2023-06-09 17:07:32 +00:00
Tomas Votruba 74feb951d2 Updated Rector to commit 7740446b9569f8e03f64dedf4e1330fe52b98b3e
7740446b95 Drop AttributeKey::SCOPE in RemoveUnusedVariableAssignRector (#4141)
2023-06-09 17:06:55 +00:00
Tomas Votruba d11bfc6bb9 Updated Rector to commit af780c8f07bfe6fcf011789979369f03e279db44
af780c8f07 Removing parent node calls (#4137)
2023-06-09 15:59:30 +00:00
Tomas Votruba b0e2693e28 Updated Rector to commit 8fe22e43b593963c405fac48c5d093e1575afd49
8fe22e43b5 Remove RemoveDelegatingParentCallRector as overly complex and usually on purpose (#4136)
2023-06-09 15:42:29 +00:00
Tomas Votruba fc7326e2ba Updated Rector to commit e5e33ebc3be86879d802690ee851bcc923a5e5f6
e5e33ebc3b Use class reflection do work with enum suffix (#4134)
2023-06-09 15:36:48 +00:00
Tomas Votruba 2c295def16 Updated Rector to commit 82687502deb9d41ed79ed832baa09fe23f90d3f8
82687502de Avoid parent node lookup in RemoveEmptyClassMethodRector (#4129)
2023-06-08 23:05:51 +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 48bf71f740 Updated Rector to commit 8db9a6ff83fe5407e967000b2dfec772285de87a
8db9a6ff83 [DX] Autowire commands explicitly (#4118)
2023-06-08 18:28:01 +00:00
Tomas Votruba 9e103260ec Updated Rector to commit 2f3e9be0ae108c75f9de8fbf2ea92f0393ad9839
2f3e9be0ae [DX] Test BetterNodeFinder with Laravel container (#4106)
2023-06-08 14:23:03 +00:00
Tomas Votruba 687f5efeef Updated Rector to commit d9cf3d4b9f427691349d4c1fbe2160241c1585b8
d9cf3d4b9f Remove removeNode() from RemoveUnusedPrivatePropertyRector (#4092)
2023-06-06 11:55:37 +00:00
Tomas Votruba 35c3aab2b4 Updated Rector to commit 2915ab78d47cbbc8c2c09e6154eef83b7f75cbf2
2915ab78d4 Remove removeNode() from RemoveUnusedPromotedPropertyRector (#4089)
2023-06-05 15:33:17 +00:00
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 bc7911e5d1 Updated Rector to commit a61fbf265d2995453ad8d9f12b6bb00ff1937162
a61fbf265d Remove removeNode() from couple rules (#4083)
2023-06-05 13:42:47 +00:00
Tomas Votruba 1078587eae Updated Rector to commit 1fa8672242253aae77cd888400c5125d2e1fa9f5
1fa8672242 Remove removeNode() from RemoveDoubleAssignRector (#4082)
2023-06-05 10:21:40 +00:00
Tomas Votruba 899f790edb Updated Rector to commit b743de6b8194322cd59eb8967b10d4b9ffb3fa1c
b743de6b81 Remove removeNode() in various rules (#4080)
2023-06-05 10:07:36 +00:00
Tomas Votruba 5697e833d8 Updated Rector to commit 8e80c7a5489a096b707281aded4ff4976bbb10b1
8e80c7a548 Remove removeNode() from RemovePhpVersionIdCheckRector (#4078)
2023-06-05 09:54:03 +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 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 c440a59574 Updated Rector to commit 063c488b9b6a4eefe4a65fb6236f0b00b0e14890
063c488b9b Remove removeNode() from RemoveEmptyMethodCallRector (#4071)
2023-06-04 22:44:01 +00:00
Tomas Votruba ad0058dd98 Updated Rector to commit 5f2ddbfd85c50c3baea67e02472640f50ba7b6a0
5f2ddbfd85 Remove removeNode() from RemoveDeadIfForeachForRector (#4072)
2023-06-04 22:38:07 +00:00
Tomas Votruba 2813830091 Updated Rector to commit d288f4c41dbcd2a095a1cf11b3b4d6e989973394
d288f4c41d Remove removeNode() from RemoveUnusedPrivateMethodRector (#4067)
2023-06-04 18:10:51 +00:00
Tomas Votruba bd7d3c46f2 Updated Rector to commit cd776a822655f90311b0e1e925df138d24f147a1
cd776a8226 Remove removeNode() from RemoveDelegatingParentCallRector (#4066)
2023-06-04 18:09:35 +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 9a2931cbe4 Updated Rector to commit bdc2fc99631f67eeb2d96e2cf0906279c2561c9a
bdc2fc9963 [NodeManipulator] Remove parent lookup on PropertyFetchAssignManipulator (#4037)
2023-06-01 08:56:46 +00:00
Tomas Votruba 442b2ce101 Updated Rector to commit 73c1ac45e78b2e8b091f7a0cbcc0b54b9b24bb42
73c1ac45e7 Make use of key to remove property (#4032)
2023-05-30 14:11:53 +00:00
Tomas Votruba 010d5d2c6f Updated Rector to commit 22e97d1c418d0772cf449ed888522ca060829ddf
22e97d1c41 Cleanup stmts (#4027)
2023-05-30 13:05:48 +00:00
Tomas Votruba 8fa5f13430 Updated Rector to commit 953ecb9ecd02d5fc13a21cd7086b60aa45eac31d
953ecb9ecd Improve RemoveUnusedNonEmptyArrayBeforeForeachRector to work with foreach over stmts (#4026)
2023-05-30 12:38:31 +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 85587ab16d Updated Rector to commit 4ea7d0f477ff10755172869818056824b2d42dcd
4ea7d0f477 [DeadCode] Clean up PHPStan notice on ComplexNodeRemover::processRemoveParamWithKeys() (#4018)
2023-05-29 12:26:31 +00:00
Tomas Votruba 6b379fd240 Updated Rector to commit e6048295f9001e693403f9f47fd956c543636c16
e6048295f9 [DeadCode] Use  flag on return ClassMethod node on RemoveUnusedConstructorParamRector (#4017)
2023-05-29 12:18:38 +00:00
Tomas Votruba 672507859d Updated Rector to commit 580c76d7fe50f608dfac67f011cd6cac33b6ef72
580c76d7fe [DeadCode] Revert constructor with middle param removal on RemoveUnusedPrivatePropertyRector (#4016)
2023-05-29 12:06:26 +00:00
Tomas Votruba 1b08d37c26 Updated Rector to commit f15cbd7a7d1913287cf67fa9ee2311ebee11cae3
f15cbd7a7d Remove PARENT_NODE from RemoveUnusedConstructorParamRector (#4014)
2023-05-29 09:38:38 +00:00
Tomas Votruba 601ac11f14 Updated Rector to commit 32510e0dc7ee63d5a38c7d088aaf82eee605c516
32510e0dc7 Remove array items directly RemoveDuplicatedArrayKeyRector (#4013)
2023-05-29 09:16:46 +00:00
Tomas Votruba 4cf0c8c8ba Updated Rector to commit 48991c6394059d53256dcfacf41957f8a434a453
48991c6394 [Performance] Reduce ClassReflection lookup on RemoveUnusedPrivateMethodRector (#4006)
2023-05-28 21:08:58 +00:00
Tomas Votruba 45419321ce Updated Rector to commit 95d3dc93770718d2337a7addbfed021f6cad8072
95d3dc9377 [DeadCode] Remove parent lookup on RemoveUnusedPrivateMethodRector (#4005)
2023-05-28 21:02:39 +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 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 5f32b6989a Updated Rector to commit 62ecc9028796457cc58e717ac50c9d2cc5339b17
62ecc90287 [DeadCode] Skip assign closure bind by reference on RemoveUnusedVariableAssignRector (#3942)
2023-05-24 02:50:28 +00:00
Tomas Votruba f7fccae5ba Updated Rector to commit e04e51c25d95e3b2133adca5f01f8e7e002534af
e04e51c25d [DeadCode][Php56] Handle infinite loop on RemoveUnusedVariableAssignRector+AddDefaultValueForUndefinedVariableRector (#3940)
2023-05-23 22:15:37 +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 71d07f8bbf Updated Rector to commit 6e88b21cfdbf459d4c2b4c97c0db2c9b2d90b572
6e88b21cfd Remove PARENT_NODE from RemoveEmptyMethodCallRector (#3932)
2023-05-22 14:37:37 +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 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 bd8dcc9cae Updated Rector to commit 33c04c5c90725b36c864cfc86c5491f8d6912396
33c04c5c90 [DeadCode] Remove next attribute on RemoveUnusedVariableAssignRector (#3917)
2023-05-21 22:39:40 +00:00
Tomas Votruba ae79c1dc04 Updated Rector to commit 83a4a60b4c48d017694f2a0867f821c33ff5b27c
83a4a60b4c Drop AttributeKey::SCOPE in MethodParameterTypeResolver (#3873)
2023-05-16 17:11:44 +00:00
Tomas Votruba 73738c0fb1 Updated Rector to commit 3df70bdd234efe4c6f49607df5378fb150b111e7
3df70bdd23 Remove NEXT_NODE from RemoveDuplicatedIfReturnRector (#3858)
2023-05-15 13:00:55 +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 89439d883f Updated Rector to commit 95b1789a871adeb6b6555949d3cf32b0b4060613
95b1789a87 Drop AttributeKey::SCOPE in ArrayCallableMethodMatcher (#3835)
2023-05-15 08:51:25 +00:00
Tomas Votruba 83531b9b9d Updated Rector to commit 4ac2cf87c569ec8ebea4d631d684439c16dd296d
4ac2cf87c5 [Restoration] Remove RemoveFinalFromEntityRector as used only to revert very old Rector bug (#3847)
2023-05-14 15:50:50 +00:00
Tomas Votruba 98e78b2b7c Updated Rector to commit ec61753f20dbabd4b4b350f9d7a994ac61315e82
ec61753f20 [PHP 8.0] Deprecate old UnionTypesRector that is dangerously moving docblocks, use type declaration rules instead (#3846)
2023-05-14 15:41:53 +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
Tomas Votruba f613b7a98a Updated Rector to commit 499fdbc3af1779929444c170a778678e28be957a
499fdbc3af Drop AttributeKey::SCOPE in various classes (#3836)
2023-05-14 10:01:33 +00:00
Tomas Votruba 41a479f910 Updated Rector to commit 0d3a9a263b6649548270dd503b8ac3bb0df107c4
0d3a9a263b [Traverser] Add GlobalVariableNodeVisitor (#3816)
2023-05-13 10:12:10 +00:00
Tomas Votruba 55e711a3e6 Updated Rector to commit f4ecf4a033e45042e659440e81281895cb343555
f4ecf4a033 Drop AttributeKey::SCOPE in CurrentAndParentClassMethodComparator (#3803)
2023-05-11 19:11:09 +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 34a9ea6ade Updated Rector to commit c63dd46e8d8881b576cee60ef09d68f52789a5ee
c63dd46e8d Drop AttributeKey::SCOPE in Rector-classes (#3790)
2023-05-10 18:50:31 +00:00
Tomas Votruba 039864701c Updated Rector to commit 764ef74406bf794b30f64d6c5a94e6abfebc4833
764ef74406 [DeadCode] Reduce findFirstPrevious() on RemoveUnusedvariableAssignRector (#3789)
2023-05-10 14:43:48 +00:00
Tomas Votruba a2c39b778e Updated Rector to commit 13d81f90894396f7e443cb5cb9198aeacb6bc05a
13d81f9089 [Cleanup] Make use of getArgs() directly (#3766)
2023-05-08 07:37:37 +00:00
Tomas Votruba 359cac195c Updated Rector to commit b116bc0cbda89ff560680be74e6e35c9831b0e07
b116bc0cbd Defer type-resolving in RemoveJustPropertyFetchRector (#3761)
2023-05-08 04:31:43 +00:00
Tomas Votruba 82228b7056 Updated Rector to commit ea3d4f164337d11e757a0348d5445efb4b6d5b2f
ea3d4f1643 Defer type-resolving in SideEffectNodeDetector (#3762)
2023-05-07 19:13:32 +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 f924c3de30 Updated Rector to commit 0dfc92f16f7d3d21a21ae5e6f6abb21467fb48da
0dfc92f16f Add declare strict_types rule, finally 🥳 (#3619
2023-04-17 15:47:09 +00:00
Tomas Votruba 9263d6613a Updated Rector to commit 195bb62accb975904892da79996ccfb61eda34cd
195bb62acc [DeadCode] Add early return check to RemoveUnusedNonEmptyArrayBeforeForeachRector (#3611)
2023-04-14 08:11:59 +00:00
Tomas Votruba c65ab46563 Updated Rector to commit 5ea7727cfd05ece95fa8730576360e58148b3d56
5ea7727cfd [DeadCode] Skip RemoveDuplicatedArrayKeyRector on ++index or --index  (#3606)
2023-04-11 04:16:20 +00:00
Tomas Votruba 2300088c0b Updated Rector to commit 08660ad7077c86c3c86e7d1cbd14d9d7d71cb450
08660ad707 Use isFloat() (#3594)
2023-04-09 00:39:59 +00:00
Tomas Votruba a03a19aeca Updated Rector to commit 273e4b43f1dbe84d426f4db5ab7ea9b0b1fea190
273e4b43f1 Use isBoolean() (#3591)
2023-04-08 16:37:58 +00:00
Tomas Votruba 7025ec875c Updated Rector to commit 64cca7759d28f2dc0d17acdf55eb10779818726c
64cca7759d [DeadCode] Improve RemoveUnusedNonEmptyArrayBeforeForeachRector with && (#3587)
2023-04-08 14:11:59 +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 75f99e1dc0 Updated Rector to commit a36a4d9fcb244d5d49a45255d9581a16410dff7a
a36a4d9fcb Remove unused imports (#3567)
2023-04-05 19:01:37 +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 77c06429df Updated Rector to commit 53f549df59999185aba90f5043982dec1973d230
53f549df59 [DeadCode] Remove property comment same line on RemoveUnusedPrivatePropertyRector (#3547)
2023-04-01 19:30: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 817a8ccc28 Updated Rector to commit 58d862b6f54529f25ecb994ea5e7d2c3eb69f210
58d862b6f5 [DeadCode] Remove previous and parent attribute usage on RemoveNullPropertyInitializationRector (#3541)
2023-03-30 20:44:38 +00:00
Tomas Votruba 8cbca2ef81 Updated Rector to commit 180d9a4fad89124d3f547af178f5179e4d4277ee
180d9a4fad [DeadCode] Remove previous attribute usage on RemoveDeadConditionAboveReturnRector (#3538)
2023-03-29 20:32:46 +00:00
Tomas Votruba 71617cf3ae Updated Rector to commit 8ff7747eab74154d32f76c9db4443762567e6dda
8ff7747eab RemoveNonExistingVarAnnotationRector: Allow return annotations (#3534)
2023-03-28 22:41:17 +00:00
Tomas Votruba 0b3c5d9bcc Updated Rector to commit f22ddc8f18ef345d5e9c99cbb667548c3c854d7d
f22ddc8f18 Add not null compare to FlipTypeControlToUseExclusiveTypeRector (#3513)
2023-03-23 23:21:34 +00:00
Tomas Votruba bc4d62886b Updated Rector to commit b2e90e8df6609979f068858c5912aba7e2d1ede3
b2e90e8df6 [DeadCode] Skip assign inside if cond on RemoveAlwaysTrueIfConditionRector (#3447)
2023-03-04 08:51:42 +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 3689432167 Updated Rector to commit b1b48bceab3cf56858ebe565a22bba74458a497f
b1b48bceab [DeadCode] Skip if cond use variable from @param doc on RemoveAlwaysTrueIfConditionRector (#3402)
2023-02-22 18:49:35 +00:00
Tomas Votruba 908a3c39d3 Updated Rector to commit 648a2f5ca994605a85e8f10279936a864eefc09c
648a2f5ca9 Fix BleedingEdgeIncludePurifier to use random value on temporary file to avoid crash (#3396)
2023-02-21 17:09:39 +00:00
Tomas Votruba 7e939b3a17 Updated Rector to commit 91ddd680c78eacc11006126398d64c4b97d38694
91ddd680c7 [TypeDeclaration] Remove unused intersection docblock on nullable intersection on TypedPropertyFromAssignsRector (#3373)
2023-02-12 18:36:15 +00:00
Tomas Votruba 1044a9f5fe Updated Rector to commit db4ec0218f0ad9670790d5725c98bbb34120a97e
db4ec0218f [TypeDeclaration] Handle nullable intersection on TypedPropertyFromAssignsRector (#3372)
2023-02-12 17:34:35 +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 827c456b07 Updated Rector to commit fe7ed4fb9a4ed31a13f70ee9e6595552aecb0f58
fe7ed4fb9a Skip attribute in RemoveUnusedPromotedPropertyRector (#3280)
2023-01-13 19:41:09 +00:00
Tomas Votruba 0fc42c2559 Updated Rector to commit 47fa234379b7b9f28081e8bc6e683628f8d53f2b
47fa234379 [CodeQuality] Add Variable support on class arg on InlineIsAInstanceOfRector (#3261)
2023-01-02 11:58:30 +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 dfa8f9c12d Updated Rector to commit 9a0938d8df9d8771d8d423eb4719cd7fe3b1ba0e
9a0938d8df [e2e] handle multiple classes with anonymous class on MultipleClassFileToPsr4ClassesRector file removed (#3253)
2022-12-25 10:55:21 +00:00
Tomas Votruba 96d8a22628 Updated Rector to commit 70fea54e77ffd186e41540d2b36c5362b073fbc4
70fea54e77 [DeadCode] Add TargetRemoveClassMethodRector (#3240)
2022-12-22 17:06:53 +00:00
Tomas Votruba b607ae2a53 Updated Rector to commit 0d6234b584f14d25e02c8c97afac7f6374aa306c
0d6234b584 [DeadCode] Skip standalone @return false or true on RemoveUselessReturnTagRector (#3202)
2022-12-15 14:08:31 +00:00
Tomas Votruba 41faaad8b8 Updated Rector to commit e71df1ba87d3c0189112b626e0e44880e3b608bf
e71df1ba87 [DeadCode] Skip append array data on RemoveJustPropertyFetchRector (#3201)
2022-12-14 19:45:13 +00:00
Tomas Votruba aec87d7b85 Updated Rector to commit 4a03eb97153dd3d3868d90feeb0a269f3be754e6
4a03eb9715 [DeadCode] Skip expr as MethodCall or StaticCall from ClassMethod @return string docblock on RecastingRemovalRector (#3187)
2022-12-11 16:22:41 +00:00
Tomas Votruba 2a553a9afd Updated Rector to commit 3dea2bdc4de76d217cc2d67cce4ccb41d2b4c7f3
3dea2bdc4d skip false positive chagne report on RemoveUselessParamTagRector (#3151)
2022-12-04 13:35:33 +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 789d270789 Updated Rector to commit ecec40ce9d1b075c65dbbbabe38dbd70d5a50df5
ecec40ce9d [DeadCode] Skip re-assigned variable in RemoveJustPropertyFetchRector (#3124)
2022-11-28 16:12:25 +00:00
Tomas Votruba d60996d358 Updated Rector to commit 63ca8727cbf38fdbcc1a68c429ce3dc2340f268e
63ca8727cb [DeadCode] Fix RemoveJustPropertyFetchRector to skip concat assigns (#3123)
2022-11-28 15:58:59 +00:00
Tomas Votruba 18b5311e05 Updated Rector to commit fa9a953fc8df6d31c24b0415b177580f7edd4100
fa9a953fc8 [Php80] Skip possible numeric string switch cond with all integer case cond on ChangeSwitchToMatchRector (#3067)
2022-11-15 20:31:43 +00:00
Tomas Votruba b0ce719527 Updated Rector to commit 04257d3c76ee23722447433f07c8e5678ac9a07b
04257d3c76 Utilize Type->isArray() (#3065)
2022-11-15 15:22:43 +00:00
Tomas Votruba db8311e52e Updated Rector to commit e28e7a18fe894974b31eae2fa2ff829a130a8a05
e28e7a18fe Use the correct word (#3052)
2022-11-11 15:03:05 +00:00
Tomas Votruba d72c3a41d9 Updated Rector to commit 8ede862b8de3239aafea64484802903aaa6d5e95
8ede862b8d Update phpstan message (#3042)
2022-11-10 16:47:52 +00:00
Tomas Votruba d9e32f78d0 Updated Rector to commit baf8394798205ee0d9c6f27e72f018e0996e624f
baf8394798 Fix var/property usage for RemoveUnusedNonEmptyArrayBeforeForeachRector. (#3040)
2022-11-10 07:49:28 +00:00
Tomas Votruba bba6495f7d Updated Rector to commit 10346eea20d2222819f59b2ae994acc0948352e4
10346eea20 Apply node->isFirstCallable() check early before ->getArgs() when possible on CallLike (#3038)
2022-11-07 17:28:06 +00:00
Tomas Votruba ddc864eff4 Updated Rector to commit 7b7d5a4b8bb61b52a298cbf941b7df131897f55b
7b7d5a4b8b Revert string specific identifier values on Type Mappers (#3024)
2022-11-01 14:15:38 +00:00
Tomas Votruba c694bb8a08 Updated Rector to commit c304b15884418eeba88cebd2a8f090e0abafbaa1
c304b15884 [Core] Remove second param on ClassLikeAstResolver::resolveClassFromClassReflection() (#2975)
2022-10-13 11:06:06 +00:00
Tomas Votruba e87c848801 Updated Rector to commit ff4d797c73a51a3fb12cb644c6911ecd7313ec1b
ff4d797c73 [DeadCode][EarlyReturn] Handle RemoveUnusedVariableAssignRector+RemoveAlwaysElseRector (#2964)
2022-10-02 20:24:31 +00:00