18115 Commits

Author SHA1 Message Date
Tomas Votruba
c09e34bbdb Updated Rector to commit 1865d51f2f5e5045ac3b5e52fc45d79d8f36636b
1865d51f2f docs
2024-06-28 14:06:32 +00:00
Tomas Votruba
3732dae0b1 Updated Rector to commit 9c41ee08fd90edc940ad117ea79d6a316138e867
9c41ee08fd Make CatchExceptionNameMatchingTypeRector run without alias resolver (#6067)
2024-06-28 13:08:07 +00:00
Tomas Votruba
2c2b95988f Updated Rector to commit 0796b9267ec313696e57a3cf5d9cd06a923bb62b
0796b9267e [TypeDeclaration] Add AddClosureReturnTypeFromStrictNativeCallRector (#6059)
2024-06-28 07:33:59 +00:00
Tomas Votruba
9389093da3 Updated Rector to commit 2b94020bac39736b20c94b5f64841b57ec5b6398
2b94020bac Revert "[Printer] Remove AlwaysRememberedExpr check on BetterStandardPrinter …" (#6066)
2024-06-28 06:41:00 +00:00
Tomas Votruba
79a285ae73 Updated Rector to commit 0b867444475d26537e488742e437f73305f1a4c1
0b86744447 [Printer] Remove AlwaysRememberedExpr check on BetterStandardPrinter (#6065)
2024-06-28 03:48:53 +00:00
Tomas Votruba
2234db2c47 Updated Rector to commit 20d9565b93cfc4a8ea063b1fa9512c242218fa1f
20d9565b93 [NodeTypeResolver] Clean up unreachableStatementNode flag flip-flop check on NodeScopeAndMetadataDecorator (#6064)
2024-06-28 02:26:57 +00:00
Tomas Votruba
c950697298 Updated Rector to commit c1e0136582837d4322c76e4d7f5ea58a4cc1d68c
c1e0136582 [TypeDeclaration] Add AddClosureReturnTypeFromReturnCastRector (#6061)
2024-06-27 19:35:55 +00:00
Tomas Votruba
61c5d55be0 Updated Rector to commit 4841e576790b6a8e277ce3546e42212af734cd7f
4841e57679 fix: Add code as a named argument (#6062)
2024-06-27 19:35:05 +00:00
Tomas Votruba
b8a1ca3409 Updated Rector to commit 1a2fca653bb7f4c817cf624d0d4c317ef1a0115f
1a2fca653b Add `always` config for EncapsedStringsToSprintfRector (#6050)
2024-06-27 19:30:52 +00:00
Tomas Votruba
0226b2ea72 Updated Rector to commit 237e79105fe7e8ef22020c06ee1a456f27dbcf4b
237e79105f fix: Skip remove always true condition on method calls (#6063)
2024-06-27 18:53:09 +00:00
Tomas Votruba
457380f722 Updated Rector to commit ad8b64c8c158aadddeafa35313e8f5643babda28
ad8b64c8c1 [Php81] Add missing check changed on FuncCall no change on FirstClassCallableRector (#6060)
2024-06-27 12:59:42 +00:00
Tomas Votruba
8e436d37b3 Updated Rector to commit 2178a0559151516f18af39b012f81372bab15cf1
2178a05591 add explicit mixed types in strict declares (#6058)
2024-06-27 09:46:41 +00:00
Tomas Votruba
a8d6183cb0 Updated Rector to commit 33ccf7e416bb6314f17597b1735a399bf769acbf
33ccf7e416 [CI] Make linter simple (#6057)
2024-06-27 07:54:21 +00:00
Tomas Votruba
dad1e77265 Updated Rector to commit fafa4013f6996e47724aad11d4ef0c10d3a9cd14
fafa4013f6 Cleanup few duplicated test fixtures, fix SimplifyEmptyCheckOnEmptyArrayRector test namespace (#6056)
2024-06-27 07:46:59 +00:00
Tomas Votruba
2db7931b21 Updated Rector to commit 77a6000e2aab5a9c67d5c1d5a2cb7a168145b068
77a6000e2a Add min PHP version to RemoveUselessReadOnlyTagRector (#6055)
2024-06-27 07:36:17 +00:00
Tomas Votruba
7606c886a2 Updated Rector to commit fa93e6502bcb1d78f811c4a5af4e044c9b3bf73d
fa93e6502b [Php81] Handle usage as arg by ref key on falsy ObjectType on ReadOnlyPropertyRector (#6054)
2024-06-27 06:38:48 +00:00
Tomas Votruba
5ca1912734 Updated Rector to commit d9d0f3fe429ecf3d3b26f895baaf7229cf44667c
d9d0f3fe42 [DX] Skip post rules in skips (#6052)
2024-06-26 20:39:39 +00:00
Tomas Votruba
3e34f8ed87 Updated Rector to commit da6633d6a264c095d676d61f5bfe5faf52ced269
da6633d6a2 fix: Convert DateTime to Carbon properly when negative days/months are used (#6051)
2024-06-26 18:10:33 +00:00
Tomas Votruba
6be87806c2 Updated Rector to commit 716ee0baa0e116478ba30e06ce68c7431b5d8504
716ee0baa0 [Naming] Handle used in arrow function param, then used again outer ArrowFunction on RenameParamToMatchTypeRector (#6046)
2024-06-26 15:28:34 +00:00
Tomas Votruba
fbeb28108e Updated Rector to commit 6be29cb334c36a803a5a82a420f4b21e11b4389a
6be29cb334 remove e2eTestChangingRunnerWithCache (#6048)
2024-06-26 14:48:45 +00:00
Tomas Votruba
462ba01b9d Updated Rector to commit d6102594b3dd109267e5e5448206373cba8ad043
d6102594b3 [DX] Inform about deprecated rules in config (#6047)
2024-06-26 14:21:24 +00:00
Tomas Votruba
c22f5df110 Updated Rector to commit ca9d1f733f801a06ea23e786094ead5e9b5e4623
ca9d1f733f [TypeDeclaration] Add AddClosureReturnTypeFromStrictParamRector (#6044)
2024-06-26 13:34:02 +00:00
Tomas Votruba
5e279558fc Updated Rector to commit 5bb9cbafb58949e3e05c5c3a294d86df2c4902a0
5bb9cbafb5 Fix downgrade error: namespace Foreach should be Foreach_ (#6045)
2024-06-26 10:52:45 +00:00
Tomas Votruba
4245cbb8cd Updated Rector to commit 28c138e47c61bcf5532f200b6741314e9063f58f
28c138e47c [Cleanup] Deprecate *ToTypeCastRector rules as no difference in performance, handle by cs instead (#6043)
2024-06-26 10:11:19 +00:00
Tomas Votruba
253b752428 Updated Rector to commit 23597c551da3bd1f1477f4415b1b2cad4651307c
23597c551d [Cleanup] Deprecate UseIncrementAssignRector as depends on context and might be intentional (#6042)
2024-06-26 10:04:52 +00:00
Tomas Votruba
a26759c6e7 Updated Rector to commit d68e8fa32a27c1ddd474ef6f1b4e1f63a74e5708
d68e8fa32a [Cleanup] Deprecate ChangeAndIfToEarlyReturnRector as creates less readable code with inverted conditions (#6041)
2024-06-26 09:09:52 +00:00
Tomas Votruba
3dc474ce71 Updated Rector to commit dbcc9cb871623c76b7db7b31d1cb43f8268a3bec
dbcc9cb871 [TypeDeclaration] Add AddClosureNeverReturnTypeRector (#6039)
2024-06-26 09:08:01 +00:00
Tomas Votruba
aa523680df Updated Rector to commit b4b251ab30275a93af017621f4acc90f055b85c1
b4b251ab30 [DX] Deprecate dump-node command, use more advanced https://getrector.com/ast instead (#6040)
2024-06-26 08:53:47 +00:00
Tomas Votruba
7d1a877b87 Updated Rector to commit 3058379b2a42f2459b979bc871815b7133c19e47
3058379b2a Add `only_direct_assign` config for SimplifyUselessVariableRector (#6034)
2024-06-26 08:34:52 +00:00
Tomas Votruba
ae4205369c Updated Rector to commit 7eea29eb1e168c418d41cec118ee9baa3fea8c79
7eea29eb1e Revert "[Example Config] Use class reference instead of self:: on code exampl…" (#6038)
2024-06-26 06:33:54 +00:00
Tomas Votruba
f8a0e24a2f Updated Rector to commit 421f74a9aad5c08ea619abe2abb5f930645de614
421f74a9aa [Example Config] Use class reference instead of self:: on code example config to ease copy paste config  (#6037)
2024-06-26 04:09:32 +00:00
Tomas Votruba
8b4bf1857a Updated Rector to commit 7e79ae201c4de45815db5d43531e38babfb82786
7e79ae201c [Cleanup] Remove FormatPerservingPrinter as only delegate method, use BetterStandardPrinter directly (#6036)
2024-06-26 03:43:22 +00:00
Tomas Votruba
10e64410ff Updated Rector to commit 87411545f3ddb40fef7cbefcac5b7a0d3c511242
87411545f3 [Cleanup] Remove @changelog as no longer maintained/used, use RuleDefinition instead (#6035)
2024-06-26 03:35:12 +00:00
Tomas Votruba
c76721fedd Updated Rector to commit 1f1a57a7ff3899dc19136c4ba245e98ec769162d
1f1a57a7ff apply rector
2024-06-26 03:04:32 +00:00
Tomas Votruba
68c7f74a2a Updated Rector to commit d2c9088cea86f0a268b8626a95e2d19a9b90b5f1
d2c9088cea [TypeDeclaration] Add AddClosureUnionReturnTypeRector (#6033)
2024-06-26 02:50:54 +00:00
Tomas Votruba
371632bd6a Updated Rector to commit ae9baaccf59a877c437f648b6184a472c0747ddb
ae9baaccf5 [TypeDeclaration] Remove ArrowFunction from ReturnTypeFromReturnDirectArrayRector and ReturnTypeFromReturnNewRector (#6032)
2024-06-26 02:49:00 +00:00
Tomas Votruba
0f837d351d Updated Rector to commit e693d17fbe677be47750632f896366b6febe78fb
e693d17fbe feat: Support functions for first-class-callable (#6027)
2024-06-26 02:35:51 +00:00
Tomas Votruba
c49badceec Updated Rector to commit 8f0a09cc249e2725936a0eff3dd2651ebb10881a
8f0a09cc24 [Bridge] Add SetRectorsResolver, SetProviderCollector for easier use in 3rd-party tools (#6030)
2024-06-25 07:21:34 +00:00
Tomas Votruba
c5c2d1fbd8 Updated Rector to commit 221aa01fe23a3b998768e9461cf75e8be0a9d67d
221aa01fe2 [Config] Exclude listed on .gitignore for withRootFiles() (#6028)
2024-06-25 04:21:54 +00:00
Tomas Votruba
e3f8b78035 Updated Rector to commit 34d057dd7246e46418b249115865825e724a6825
34d057dd72 provide set file path
2024-06-25 03:10:47 +00:00
Tomas Votruba
02fe8d974f Updated Rector to commit 442bff7bb8c8138227b19e9fa5907cb4d4f5dae8
442bff7bb8 deprecate SetListInterface
2024-06-25 03:10:25 +00:00
Tomas Votruba
e2fbe7654f Updated Rector to commit e9f7ea6c2862adc8f619c6f9937d74f3a640a65f
e9f7ea6c28 misc
2024-06-25 03:08:11 +00:00
Tomas Votruba
8aadb5aae7 Updated Rector to commit e1c750cc0cdd43747e187767a80e442ae9ffc8c0
e1c750cc0c make versioned set name tolerante for global name
2024-06-25 03:00:03 +00:00
Tomas Votruba
8855683828 Updated Rector to commit e1c750cc0cdd43747e187767a80e442ae9ffc8c0
e1c750cc0c make versioned set name tolerante for global name
2024-06-25 02:54:01 +00:00
Tomas Votruba
2df735b922 Updated Rector to commit 5db98f0dba56178ddabd4117d6bf8bdd89cbe5b1
5db98f0dba add symfony group
2024-06-25 02:37:01 +00:00
Tomas Votruba
45f4610dfd Updated Rector to commit 5db98f0dba56178ddabd4117d6bf8bdd89cbe5b1
5db98f0dba add symfony group
2024-06-25 02:08:41 +00:00
Tomas Votruba
2b1265399c Updated Rector to commit 084d5d6b71c55336a51af00c342e6a6be925e18f
084d5d6b71 fix: Skip static calls which are made using the class name (#6024)
2024-06-25 01:01:08 +00:00
Tomas Votruba
a6f3fba295 Updated Rector to commit e4c37cc475dff2a35481c12a0adeb41b5f9eed9d
e4c37cc475 improve SetGroup
2024-06-24 16:08:27 +00:00
Tomas Votruba
8663b06069 Updated Rector to commit 1b2a3f806e3050165febdddf39827bfcac5c3cec
1b2a3f806e [Sets] Add PHP and Core set providers (#6026)
2024-06-24 15:55:48 +00:00
Tomas Votruba
08b3d7c60c Updated Rector to commit db95a3b35e93e4cd84f1f86b273fd855d45a6db8
db95a3b35e [DX] Add set object (#6025)
2024-06-24 15:27:06 +00:00