Commit Graph

140 Commits

Author SHA1 Message Date
Tomas Votruba 87c26777cb Updated Rector to commit 28e84d24d0f618a8a7e0ff6ea561f1aade554df9
28e84d24d0  [EarlyReturn] Skip with AssignOp on PreparedValueToEarlyReturnRector  (#5857)
2024-05-03 14:46:34 +00:00
Tomas Votruba 7660d5730f Updated Rector to commit 8ade0b9e46aff3e6f755a9561579cdc0c9eb9b0e
8ade0b9e46 [EarlyReturn] Clena up equal node check on IfAndAnalyzer::isIfStmtExprUsedInNextReturn() (#5710)
2024-03-11 02:23:45 +00:00
Tomas Votruba 4026ff15b0 Updated Rector to commit 2adeacc410de9304137574d2e80cf97c9f67dfa5
2adeacc410 [Performance]EarlyReturn] Reduce repetitive findFirst() on IfAndAnalyzer::isIfStmtExprUsedInNextReturn() (#5709)
2024-03-11 02:12:38 +00:00
Tomas Votruba 28f5dbde13 Updated Rector to commit c14f8d45175bd4c10fef503e350d677c4a73ce29
c14f8d4517 [Php72][TypeDeclaration] Rollback tweak infinite loop handling on DeclareStrictTypesRector (#5700)
2024-03-08 06:34:02 +00:00
Tomas Votruba 2080c1456d Updated Rector to commit 1848724bf2308c31e53d0937013715fa7a40a9c3
1848724bf2 [EarlyReturn] Skip append variable in PreparedValueToEarlyReturnRector (#8390) (#5545)
2024-02-02 21:56:32 +00:00
Tomas Votruba 8fe9717aee Updated Rector to commit 3c51cd8ebebd6840a0374e367308049c36761ee0
3c51cd8ebe [EarlyReturn] Improve RemoveAlwaysElseRector to handle multiple ElseIfs (#8178) (#5521)
2024-01-30 09:02:15 +00:00
Tomas Votruba 7e7a2f067a Updated Rector to commit 476cfb00cb6a94cb64badf9472ee78f33bdf44b3
476cfb00cb disable fallback for now
2024-01-02 02:40:38 +00:00
Tomas Votruba 35f86a2fad Updated Rector to commit 91f9f3057c2d51018228ed89273a76da991d3f45
91f9f3057c Use symfony/console ~6.3.9 to fix downgrade build (#5302)
2023-11-30 10:06:33 +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 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 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 9ccb6367c0 Updated Rector to commit 9b03d8367cd3c69b36b8b1aedf458b191f46655a
9b03d8367c [TypeDeclaration] Add ReturnUnionTypeRector (#4655)
2023-08-05 10:29:33 +00:00
Tomas Votruba 9e3dde0cb2 Updated Rector to commit a7cd7eda65894aea11ca012cac8ea4a29fb0a051
a7cd7eda65 [EarlyReturn] Handle multiple statements in else in ChangeIfElseValueAssignToEarlyReturnRector (#4580)
2023-07-22 13:10:50 +00:00
Tomas Votruba 5aeca28e79 Updated Rector to commit 56068f8571e4b8325617fa72012e58783bd03d46
56068f8571  [EarlyReturn] Skip append variable on PreparedValueToEarlyReturnRector  (#4530)
2023-07-17 04:39:26 +00:00
Tomas Votruba 5cb3704127 Updated Rector to commit 818503e3467c86f5c39ace76a94c199f7d2f6595
818503e346 Fix wrong results in RemoveAlwaysElseRector (#4527)
2023-07-16 06:15:25 +00:00
Tomas Votruba fb5e28c38b Updated Rector to commit db16e33a9a72d6c75600187d9f7851060d9a88fe
db16e33a9a [EarlyReturn] Remove ReturnBinaryAndToEarlyReturnRector as creates code hard to read and flips condition (#4478)
2023-07-11 15:52:31 +00:00
Tomas Votruba e73319defd Updated Rector to commit 59b4c8d69f788a36184b69adf06b03e2ab2e8989
59b4c8d69f cs
2023-07-11 15:36:25 +00:00
Tomas Votruba 2e39614116 Updated Rector to commit 26a368c89ba8297d33600aa5a1c954d2a1b5d274
26a368c89b Fix ReturnBinaryOrToEarlyReturnRector mixing up returned nodes of array, hook into StmtsAwareInterface instead to keep next Rector rules updated (#4476)
2023-07-11 15:35:53 +00:00
Tomas Votruba d403caf40e Updated Rector to commit 66a9bcff33fce09aff972693263c04cc4cdd3604
66a9bcff33 [EarlyReturn] Remove findFirstNext() on InvertedIfFactory (#4399)
2023-07-01 17:58:08 +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 466c54de06 Updated Rector to commit 582af523662c9aac2603a1535d58fc932ab1c330
582af52366 Refactor PARENT_NODE from ChangeAndIfToEarlyReturnRector (#3985)
2023-05-27 09:52:50 +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 0693ebbfc2 Updated Rector to commit a87a9d8e026c3499c980facf1bf24bd51b69c924
a87a9d8e02 Remove NEXT_NODE from ChangeIfElseValueAssignToEarlyReturnRector (#3914)
2023-05-21 15:26:41 +00:00
Tomas Votruba fce66262b4 Updated Rector to commit 46f5209563e77fb36fe1b04749419fb258e9d710
46f5209563 Remove NEXT_NODE dependency in ChangeAndIfToEarlyReturnRector, narrow to only closed scope function likes (#3913)
2023-05-21 15:18:02 +00:00
Tomas Votruba c1e94593a2 Updated Rector to commit a87a9d8e026c3499c980facf1bf24bd51b69c924
a87a9d8e02 Remove NEXT_NODE from ChangeIfElseValueAssignToEarlyReturnRector (#3914)
2023-05-21 15:17:01 +00:00
Tomas Votruba 3847b0c3b5 Updated Rector to commit d2ae72e1fe616bb5c2d98c497a59991cfb5cca55
d2ae72e1fe Remove NEXT_NODE from IfToSpaceshipRector (#3860)
2023-05-16 12:50:39 +00:00
Tomas Votruba 9ae4a949d6 Updated Rector to commit cc3354aa8e764fd028f5de5ac1fb76e9304bdbbd
cc3354aa8e [Parser] Remove next attribute usage on InlineCodeParser (#3864)
2023-05-15 17:50:04 +00:00
Tomas Votruba 86d7e3ad58 Updated Rector to commit 6156458ef43b1961a0ded5df85ca3fa4c35686e9
6156458ef4 Drop AttributeKey::SCOPE in AssignAndBinaryMap (#3861)
2023-05-15 15:05:45 +00:00
Tomas Votruba 26bbf728d6 Updated Rector to commit d8da061308902cf4ef7a30963d5c9f32b6b9ec02
d8da061308 Make SimplifyIfNullableReturnRector + ChangeNestedIfsToEarlyReturnRector work without next/prev (#3794)
2023-05-11 11:52:57 +00:00
Tomas Votruba 9d9cee5a78 Updated Rector to commit 9a2fe2126433ad285790cd81ec8c05594de5b396
9a2fe21264 Make PreparedValueToEarlyReturnRector use StmtsAwareInterface (#3772)
2023-05-08 14:07:26 +00:00
Tomas Votruba 9b3b24049e Updated Rector to commit 83eef32f504c089d81d801d26a0355632bdc46b5
83eef32f50 [EarlyReturn] Reduce next attribute usage on ChangeAndIfToEarlyReturnRector (#3597)
2023-04-09 03:06:57 +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 d17680f2a5 Updated Rector to commit d8aa22b6713269ddafa80679777b3de9a4f456dd
d8aa22b671 [Printer][EarlyReturn] Enable InlineHTML on RemoveAlwaysElseRector (#3387)
2023-02-16 20:39:52 +00:00
Tomas Votruba c6aab80b28 Updated Rector to commit 3addb8f8783cb5efbbbc80ef2a7c143487d19398
3addb8f878 [EarlyReturn] Skip else has inline html on RemoveAlwaysElseRector (#2870)
2022-08-31 10:15:08 +00:00
Tomas Votruba 97851f1829 Updated Rector to commit c8e66ae94919163b425add82179c735dea44cd8f
c8e66ae949 [EarlyReturn] Skip indirect return with define variable after parent else on ChangeAndIfToEarlyReturnRector (#2836)
2022-08-24 12:02:12 +00:00
Tomas Votruba 1db8339e7c Updated Rector to commit 6306f9e8ecd8e367e7220b02a6613461a34dcc8a
6306f9e8ec [EarlyReturn] Skip ChangeAndIfToEarlyReturnRector in case of simple scalar return (#2826)
2022-08-24 08:11:57 +00:00
Tomas Votruba 6c1c0cfa19 Updated Rector to commit 54feb0dcfaeaafe177d1268ca2117a7fb1a7da1a
54feb0dcfa [EarlyReturn] Handle crash on assign in if else before on RemoveAlwaysElseRector (#2822)
2022-08-23 20:55:52 +00:00
Tomas Votruba cc69a886a3 Updated Rector to commit 837c2262f13e5b8faffdb02c5d9fb701d581fa61
837c2262f1 [EarlyReturn] Do not remove previous If_ stmts on ChangeNestedIfsToEarlyReturnRector (#2820)
2022-08-23 16:18:17 +00:00
Tomas Votruba 967bbc6b59 Updated Rector to commit c0070b1d30a0040e3e58724ac1b3b339e168dcb5
c0070b1d30 [CodeQuality] Skip not ArrayType on ForeachItemsAssignToEmptyArrayToAssignRector (#2752)
2022-08-11 14:29:35 +00:00
Tomas Votruba 8885e287b6 Updated Rector to commit b9cc90c058942d82f84a68f3d1971b2db6b1601d
b9cc90c058 Make use of new types by fixed rector/phpstan-rules extensions (#2748)
2022-08-09 19:37:14 +00:00
Tomas Votruba f7bb838601 Updated Rector to commit f0425bc3cb3d5855da1bff9c38b872a9003e357b
f0425bc3cb Improve scope, PHPStan extension types (#2747)
2022-08-09 13:39:17 +00:00
Tomas Votruba aa6004e082 Updated Rector to commit ae31fb60aeb3c49fb47b3fa12c792098e67831c5
ae31fb60ae [PHPStan] Resolve variable name casing (#2689)
2022-07-20 05:05:58 +00:00
Tomas Votruba 4f969ebd66 Updated Rector to commit c474c67319c9072b81dd9bcb1f4d6f201e1a1e4e
c474c67319 misc (#2678)
2022-07-19 18:25:44 +00:00
Tomas Votruba c855f5df1c Updated Rector to commit 6d7404c65000caede512a5bc5a993f472e11cd0d
6d7404c650 Home cleaning with Exacat 😎 (#2676)
2022-07-18 15:25:27 +00:00
Tomas Votruba 3e3d9cabe0 Updated Rector to commit 02cec7ebc43469d599cc6a66945e239267626ed6
02cec7ebc4 [DeadCode] Skip global and static variable on ReturnEarlyIfVariableRector (#2642)
2022-07-08 21:40:34 +00:00
Tomas Votruba 3d95b4f79c Updated Rector to commit f78af109208cfe6c217a89ecd80fb7a5a5c518e9
f78af10920 [EarlyReturn] Remove ReturnAfterToEarlyOnBreakRector as risky and turning around next/previous nodes (#2624)
2022-07-03 20:28:06 +00:00
Tomas Votruba fbcfb0e30f Updated Rector to commit b45066c505a7bd3569819cee71706ebf0f763b6e
b45066c505 [dx] remove direct assigns (#2617)
2022-07-03 12:14:45 +00:00
Tomas Votruba 7a4cfee22c Updated Rector to commit 25accb21425957d4da0db801465570e4c62014ff
25accb2142 [EarlyReturn] Skip ReturnEarlyIfVariableRector with @var doc (#2616)
2022-07-03 11:23:14 +00:00
Tomas Votruba 3737ef475a Updated Rector to commit 5972ff7417911319f1ce754636937cd07af2a04c
5972ff7417 [EarlyReturn] Mirror comment on ReturnEarlyIfVariableRector (#2612)
2022-07-03 07:04:34 +00:00