953 Commits

Author SHA1 Message Date
Tomas Votruba
374ed77ef0 Updated Rector to commit 4531aeb0cd7ef47a75afbee72237eef45b4cc266
4531aeb0cd [DeadCode] Add Function_ support on RemoveUselessReturnTagRector (#5325)
2023-12-05 09:55:15 +00:00
Tomas Votruba
1095b54b14 Updated Rector to commit 005ccc330c3bb37f9faf0f5e2c319036f2d055b8
005ccc330c Rectify (#5324)
2023-12-04 14:56:20 +00:00
Tomas Votruba
1754c2c66a Updated Rector to commit 526f4cd09c06842987e46d661b6ad87a8da723a7
526f4cd09c Remove return type in case of never in RemoveUselessReturnTagRector (#5323)
2023-12-04 14:51:16 +00:00
Tomas Votruba
6cba20638d Updated Rector to commit 80cf5781c3bf477076753e2a0c2890ae0ecbb4c1
80cf5781c3 [DeadCode] Remove useless nullable @return doc on RemoveUselessReturnTagRector (#5321)
2023-12-04 05:22:37 +00:00
Tomas Votruba
ee373e619a Updated Rector to commit 41729c25cb33ec5219433d5e101d6d54ed4045a2
41729c25cb [DeadCode] Skip @return never with void on  RemoveUselessReturnTagRector (#5320)
2023-12-04 01:56:17 +00:00
Tomas Votruba
d9834a6d69 Updated Rector to commit 8e6d46a58fff8e6bd5276b9ae473bfb91460b487
8e6d46a58f [Instanceof] Fix combination of dead instance and compare (#5319)
2023-12-03 20:12:56 +00:00
Tomas Votruba
ab4ff53673 Updated Rector to commit 026398c9e1078cb3ac5cac41767b620872166859
026398c9e1 Remove return type in case of void in RemoveUselessReturnTagRector (#5318)
2023-12-03 19:10:14 +00:00
Tomas Votruba
3ef06bdaf4 Updated Rector to commit be924be778eeceffa6105ab330ea7eb366ebb44b
be924be778 [TypeDeclaration] Add If else assign support on TypedPropertyFromAssignsRector (#5314)
2023-12-03 11:18:10 +00:00
Tomas Votruba
c5421dfd82 Updated Rector to commit e48234e23981f4022e704bc500b9a9197727e87e
e48234e239 Skip RenameMethodRector in never (#5305)
2023-12-01 09:49:11 +00:00
Tomas Votruba
912487ba8d Updated Rector to commit 4a3e6982647ce4fdc84b1232557eaeae7e914bde
4a3e698264 [DeadCode] Skip multi no stmts on RemoveDuplicatedCaseInSwitchRector (#5258)
2023-11-18 02:19:29 +00:00
Tomas Votruba
4f6134d1be Updated Rector to commit 5647e1b818482552a447d7f79392c7e2f0dce86e
5647e1b818 [Naming] Fix dotted name on generics bug in RenameVariableToMatchMethodCallReturnTypeRector (#5250)
2023-11-15 07:40:24 +00:00
Tomas Votruba
9aef117ab1 Updated Rector to commit 7ec1be6b828042b27e3f40ed41b3285a6fe78502
7ec1be6b82 [DeadCode]: Support functions in RemoveUnusedVariableAssignRector (#5249)
2023-11-14 21:18:19 +00:00
Tomas Votruba
55d6c6f50a Updated Rector to commit 61d68c89b434271c793fbbcc8e6252e9f3e0e7eb
61d68c89b4 Rename parameter variable to nextCase on RemoveDuplicatedCaseInSwitchRector (#5244)
2023-11-11 20:55:17 +00:00
Tomas Votruba
e41e10db62 Updated Rector to commit 2f74b02ef6c754c68abcdd246837583967e24678
2f74b02ef6 [DeadCode] Handle repetitive jump equal case stmts on RemoveDuplicatedCaseInSwitchRector (#5239)
2023-11-10 19:13:04 +00:00
Tomas Votruba
382d51d15f Updated Rector to commit eac58be00246ea8c89548289f2cc742e8b1b6b1a
eac58be002 [DeadCode] Reduce loop on RemoveDuplicatedCaseInSwitchRector (#5238)
2023-11-10 12:36:56 +00:00
Tomas Votruba
17eadc7eb2 Updated Rector to commit b0d4b15c3fd96582c6e3ed4d21cf4d30eb8742ce
b0d4b15c3f [DeadCode] Ensure change hasChanged flag on RemoveDuplicatedCaseInSwitchRector (#5237)
2023-11-10 09:02:20 +00:00
Tomas Votruba
c51a745c50 Updated Rector to commit bee1dae395490dd91a86230e1886b514288dfa62
bee1dae395 [DeadCode] Handle different indirect duplicated on RemoveDuplicatedCaseInSwitchRector (#5236)
2023-11-10 06:59:59 +00:00
Tomas Votruba
373eece1e0 Updated Rector to commit c61d8ea90edb04550b6a43f40bd6c6105a997189
c61d8ea90e [DeadCode] Reduce double loop on RemoveDuplicatedCaseInSwitchRector (#5235)
2023-11-09 22:56:12 +00:00
Tomas Votruba
e51766f9ec Updated Rector to commit 3f2fb29fe87904d779fb2f8d3e59492aaa9249f4
3f2fb29fe8 [DeadCode] Allow indirect duplicated grouping on RemoveDuplicatedCaseInSwitchRector (#5234)
2023-11-09 22:08:11 +00:00
Tomas Votruba
184cf49468 Updated Rector to commit f9de5d311e7e69d1ad2cb5f3087970d8b9335920
f9de5d311e [Php80] Handle RenameClassRector+AnnotationToAttributeRector with auto import and existing attribute defined (#5219)
2023-11-02 03:20:18 +00:00
Tomas Votruba
ff69243060 Updated Rector to commit f2c8967abf004558bf92c86840d57eb7f0221f9c
f2c8967abf [DeadCode] Mirror comment on assign method call on RemoveUnusedVariableAssignRector (#5195)
2023-10-24 06:21:04 +00:00
Tomas Votruba
1e0199beb5 Updated Rector to commit beeba1770967a4f5e59cf21db28a5a1ccae48a2f
beeba17709 [Naming] Skip DateTime from renaming, to keep convention of named dates (#5184)
2023-10-18 08:05:23 +00:00
Tomas Votruba
baa0c15190 Updated Rector to commit d22e71ec0196d8f0f363845db83e064b471cb07e
d22e71ec01 Revert rename + auto import remove use tweak (#5179)
2023-10-16 07:38:49 +00:00
Tomas Votruba
3f64ea0f3f Updated Rector to commit c5d3a0e1913fb0057513dd70122d8eef4d226e1c
c5d3a0e191 [CodingStyle] Clean up check last name on UseImportsRemover (#5173)
2023-10-15 04:06:54 +00:00
Tomas Votruba
5479401552 Updated Rector to commit e2ba601e7ca2e8d602bfc2ffa36bf60a88b1a1f0
e2ba601e7c [DeadCode] Skip return false pseudo type in union on RemoveUselessReturnTagRector (#5172)
2023-10-15 02:06:32 +00:00
Tomas Votruba
41683b4c5a Updated Rector to commit 9cf016cd67a9f12ebbc7ae7aaa422626eb5722a9
9cf016cd67 [automated] Apply Coding Standard (#5171)
2023-10-15 00:29:20 +00:00
Tomas Votruba
9f158ba7a8 Updated Rector to commit da2dd66088e15a5c182a047726933306a8fdc28c
da2dd66088 RemoveUnusedNonEmptyArrayBeforeForeachRector: skip array dim fetch (#5166)
2023-10-14 13:25:46 +00:00
Tomas Votruba
4c4ad160dd Updated Rector to commit c639ef8ad9213881d4fe08554f090934bc5dda07
c639ef8ad9 RemoveUnusedNonEmptyArrayBeforeForeachRector: ignore phpdoc types (#5169)
2023-10-14 12:51:53 +00:00
Tomas Votruba
d06e2fcb41 Updated Rector to commit 396f1989b8605b261cfdfebe45ee855e9fb70ac4
396f1989b8 [DeadCode] Skip count() on mixed on RemoveUnusedNonEmptyArrayBeforeForeachRector (#5160)
2023-10-13 14:40:44 +00:00
Tomas Votruba
16cc61e430 Updated Rector to commit 2efd6d56a9499be0a210a89cdd1883c6a21f83f8
2efd6d56a9 [DeadCode] Handle file_get_contents() only remove variable on RemoveUnusedVariableAssignRector (#5162)
2023-10-13 13:59:23 +00:00
Tomas Votruba
93080b5520 Updated Rector to commit b7a5fefedc9d1a32c1f238a6a8c9b89b88e7d21c
b7a5fefedc [DeadCode] Add RemoveUselessReturnExprInConstructRector (#5158)
2023-10-12 10:26:14 +00:00
Tomas Votruba
251ad8aeef Updated Rector to commit 0eb6000cfce746d9cf714722047a7d824d1f2dac
0eb6000cfc [DeadCode] Skip used in next For_/Foreach_ on RemoveDeadIfForeachForRector (#5154)
2023-10-11 04:48:30 +00:00
Tomas Votruba
b70e1334d4 Updated Rector to commit 6d96068b0232141101c238752d0c5e80d5781f74
6d96068b02  [DeadCode] Skip key used in next stmt on RemoveUnusedForeachKeyRector  (#5153)
2023-10-10 11:25:01 +00:00
Tomas Votruba
970b701227 Updated Rector to commit 6cb63f3752012f33f691844906e56d1045c8bfcf
6cb63f3752 [DeadCode] Skip indirect variable definition on RemoveNonExistingVarAnnotationRector (#5152)
2023-10-10 10:46:27 +00:00
Tomas Votruba
1eb3a7a3a9 Updated Rector to commit 4d56a61025597b598a1287f76f475bb6e8f1766f
4d56a61025 [DeadCode] Remove UnionType check on RecastingRemovalRector (#5142)
2023-10-08 03:17:49 +00:00
Tomas Votruba
e7e6907996 Updated Rector to commit d7710f8758ef1a893424e3ab395c3f74c435d91c
d7710f8758 [DeadCode] Remove AstResolver usage on RecastingRemovalRector (#5109)
2023-10-03 02:42:37 +00:00
Tomas Votruba
671f50c702 Updated Rector to commit ee715396945596fffb158ff8278749feb01ea01a
ee71539694 [NodeTypeResolver] Use isScalar()->yes() usage on StaticTypeAnalyzer and ScalarTypeComparator services (#5099)
2023-10-01 01:36:35 +00:00
Tomas Votruba
06467e73f0 Updated Rector to commit 36f0b4ad9751892be63b57ccd95ecc75404c8cee
36f0b4ad97 Make RemoveEmptyClassMethodRector skip deprecated class method, as used for BC (#5061)
2023-09-21 15:47:17 +00:00
Tomas Votruba
4b8fc3fb05 Updated Rector to commit e698133cad1a85f2384a6cf450d66c54df1876a2
e698133cad [DX] Make ValueResolver explicitly required in Rector rules constructor if needed (#5053)
2023-09-20 12:55:35 +00:00
Tomas Votruba
3827f75ecd Updated Rector to commit 23d429233d37af0d743b4d4dc622828c704d2d2f
23d429233d [DX] Make ValueResolver explicitly required in Rector rules constructor if needed (#5052)
2023-09-20 12:53:23 +00:00
Tomas Votruba
b2b3a0f5cc Updated Rector to commit 33fa6262970128e964fc4099d88d9a7369828e1a
33fa626297 [DX] Make PhpDocInfoFactory explicitly required in Rector rule constructor, if needed (#5051)
2023-09-20 12:41:26 +00:00
Tomas Votruba
00f0a02e41 Updated Rector to commit 3ffd995dd526de72ae1c325ff225bf50624d07c5
3ffd995dd5 [DeadCode] RemoveDeadZeroAndOneOperationRector should not remove Constants (#4910)
2023-09-19 10:39:33 +00:00
Tomas Votruba
6942fe920b Updated Rector to commit 780c5afe7b1623fe23e6c198665f692275fe798e
780c5afe7b [automated] Apply Coding Standard (#5031)
2023-09-17 00:30:04 +00:00
Tomas Votruba
01c783a2bf Updated Rector to commit c8ff683305a228aa2bfbe2c11eccc7a712c5db94
c8ff683305 Remove inline-@var use (#5028)
2023-09-16 11:45:20 +00:00
Tomas Votruba
57dc6f91d6 Updated Rector to commit 7e2bc1414f8567c55934a32d856e8d92a6e31d0f
7e2bc1414f [DeadCode] Ensure $hasChanged not replaced on next iteration when it assigned to true on RemoveUnusedPrivateMethodParameterRector (#5009)
2023-09-12 19:06:50 +00:00
Tomas Votruba
549bed6da9 Updated Rector to commit b3639f72d73d9471ea8a843f93eb2ca61cd54a56
b3639f72d7 Update docblock only when changed, directly in rector rule (#4986)
2023-09-11 13:16:45 +00:00
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