Commit Graph

5057 Commits

Author SHA1 Message Date
Tomas Votruba
b0c6aaf812 Updated Rector to commit 625bc7eee281d46b0e7c706d9ca9e259b7ef0db6
625bc7eee2 Fix platform version resolution, use require first (#5555)
2024-02-04 23:14:35 +00:00
Tomas Votruba
8cb186674a Updated Rector to commit 037153ba50e85666dc8bdc90f832ea4c0ff3677e
037153ba50 [DX] Fix missing Rector\RectorGenerator\Exception\ConfigurationException (#5558)
2024-02-04 21:53:39 +00:00
Tomas Votruba
8e25ebe2a2 Updated Rector to commit ba1cad35898880f6de97c9743aab96d2ac90ba73
ba1cad3589 [Privatization] Fix reprint with attribute on FinalizeTestCaseClassRector (#5557)
2024-02-04 21:10:29 +00:00
Tomas Votruba
e394be7dd2 Updated Rector to commit 2dd395167cdc146a1b566bae9c5c2f2885e55c16
2dd395167c [TypeDeclaration] Skip assign in construct with method call property same name on RestoreDefaultNullToNullableTypePropertyRector (#5556)
2024-02-04 20:46:49 +00:00
Tomas Votruba
b707660218 Updated Rector to commit 081cf7f7e508428f259b83125883178632e350dc
081cf7f7e5  [Transform] Add RectorConfigBuilderRector  (#5551)
2024-02-04 11:05:31 +00:00
Tomas Votruba
59f9eb1491 Updated Rector to commit 715103cdf1ecad0b4668f3b9e38582b3e5b55fbe
715103cdf1 Add support for YieldFrom into places where Yield_ is checked (#5499)
2024-02-03 22:50:20 +00:00
Tomas Votruba
e45bc25429 Updated Rector to commit 06fa177cb6524bdd1a3338ed5d98871ef7a5590e
06fa177cb6 Fix make ReadOnlyPropertyRector skip if traits are used, as not reliable (#5548)
2024-02-03 21:46:29 +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
5c93328f48 Updated Rector to commit cdc57233696fd680c8ebe3040b02c54d1da9c779
cdc5723369 [TypeDeclaration] Change bool to false or true docblock when union has false/true standalone type on ReturnUnionTypeRector (#5543)
2024-02-02 06:45:48 +00:00
Tomas Votruba
b0211bc3d8 Updated Rector to commit fa75fcf0d1445f90cff9199875aba352671795f9
fa75fcf0d1 [Performance][PhpVersionResolver] Cache resolve platform/require from composer.json on ProjectComposerJsonPhpVersionResolver (#5542)
2024-02-01 23:54:40 +00:00
Tomas Votruba
22c18b8179 Updated Rector to commit f03a6fd7d060535a5c124fe461190aafc527364e
f03a6fd7d0 [Privatization] Add FinalizeTestCaseClassRector (#5539)
2024-01-31 23:36:35 +00:00
Tomas Votruba
c49de5a16c Updated Rector to commit 5e7ecb623ad7fe78a660fe3d2275166492ebdb40
5e7ecb623a [stabilize] Remove child classes from MixedTypeRector as not reliable (#5537)
2024-01-31 22:01:40 +00:00
Tomas Votruba
dc77b4b2a6 Updated Rector to commit cbc077340ed5ee4a062caa32ab91cd8cb0d4ec6e
cbc077340e [stabilize] Deprecate FinalizeClassesWithoutChildrenRector as causing bugs without full context (#5535)
2024-01-31 21:40:00 +00:00
Tomas Votruba
e377d35b97 Updated Rector to commit 2efd564640e94edf09f95f3872adb11e059f5fb8
2efd564640 [stabilize] Deprecate FinalizePublicClassConstantRector as not reliable and causes uncontroller changed (#5534)
2024-01-31 14:27:18 +00:00
Tomas Votruba
a28aa22831 Updated Rector to commit 27791d1456c5ade373a0ba9d818404805eee89f4
27791d1456  [Php81] Allow nullable union on NullToStrictStringFuncCallArgRector  (#5532)
2024-01-31 13:37:12 +00:00
Tomas Votruba
aace6ea006 Updated Rector to commit 7294e98a19531d580c3ba901c147ea0a52282595
7294e98a19 Fix AddMethodCallBasedStrictParamTypeRector if already has a type (#5530)
2024-01-30 23:57:24 +00:00
Tomas Votruba
97c24103e6 Updated Rector to commit 6046c24443d9bfdfe5bf8638fb82e03703ee1df8
6046c24443 [CodingStyle] Return null on no change on StrictArraySearchRector (#5528)
2024-01-30 20:48:28 +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
3c3170a04e Updated Rector to commit 171fddb1a1e9c54e194130ffe039809721d1f465
171fddb1a1 add withPhpSets() methods (#5519)
2024-01-29 23:52:40 +00:00
Tomas Votruba
826292d8c1 Updated Rector to commit 52398c81f9e88bde858cd2d79d481ae66190abc7
52398c81f9 [Php83] add string type to concat constant (#5516)
2024-01-29 16:18:28 +00:00
Tomas Votruba
cd34331aa7 Updated Rector to commit c2cdcd3922d06924acfbf4a792eec61dccbee03e
c2cdcd3922 [CodeQuality] Fix logic start with [^ on SimplifyRegexPatternRector to ensure only skip on this case (#5495)
2024-01-23 16:37:59 +00:00
Tomas Votruba
aa518bb95d Updated Rector to commit dd02659ec90240c9452ccb86e48fb53879572935
dd02659ec9 [CodeQuality] Skip surplus open square bracket on SimplifyRegexPatternRector (#5494)
2024-01-23 15:52:42 +00:00
Tomas Votruba
e4d714cf5f Updated Rector to commit f7caedf1b61070322bfb44bb266fbf26f8c993d3
f7caedf1b6 [Performance][PhpParser] Deprecate InlineCodeParser::parse(), extract into parseFile() and parseString() (#5482)
2024-01-23 09:41:00 +00:00
Tomas Votruba
c36d19ef56 Updated Rector to commit aa66151ff14da601b4b155f4a876ad2a2070259c
aa66151ff1 [Performance] Remove unnecessary FunctionLikeParamPositionNodeVisitor (#5491)
2024-01-22 14:26:31 +00:00
Tomas Votruba
0fc99839e2 Updated Rector to commit a2ff229df99785b6b51721d929a750f51e72f57a
a2ff229df9 Fix phpstan (#5489)
2024-01-21 23:21:57 +00:00
Tomas Votruba
b140c86242 Updated Rector to commit 46dd96122bdeb7b893f518bd131c69093b6da752
46dd96122b [Renaming] Remove rename class name (#5488)
2024-01-21 23:15:27 +00:00
Tomas Votruba
599ee7833e Updated Rector to commit be53faca08c2f5c3ebafb636e766788676f54d28
be53faca08 [Renaming] Remove namespace renames in ClassRename, as it should only rename references, not move to new namespace (#5487)
2024-01-21 21:13:24 +00:00
Tomas Votruba
6cacf30624 Updated Rector to commit 7e2495e5f572bb566a845a0e1a6329cf141f872d
7e2495e5f5 [Php70] Skip inside Encapsed on ThisCallOnStaticMethodToStaticCallRector (#5481)
2024-01-19 14:05:32 +00:00
Tomas Votruba
f605aeb93f Updated Rector to commit 76714b95f240409a6fad92725ea19c870ed3ff14
76714b95f2 [Printer] Remove unnecessary BetterStandardPrinter::pStmt_Use() (#5478)
2024-01-18 20:41:36 +00:00
Tomas Votruba
566e0f2b70 Updated Rector to commit 985d5ea5109e1282f35370006ad7ac26df7789de
985d5ea510 cs
2024-01-17 14:38:19 +00:00
Tomas Votruba
0d611d897a Updated Rector to commit 07df7dc1a344c52711441149d61251a4fe10366d
07df7dc1a3 Remove collector interface and fix SpatieEnumClassToEnumRector already has underscore to double underscore (#5473)
2024-01-16 10:21:57 +00:00
Tomas Votruba
ec3d78eef4 Updated Rector to commit 5a3a59c50c7810296274eb4408737c8f2f8921e7
5a3a59c50c Remove collectors, as performance very costly and not practically useful (#5470)
2024-01-15 22:10:40 +00:00
Tomas Votruba
455fba49f9 Updated Rector to commit 9d310ce5daca61f51f35e3c8755a442998f1c536
9d310ce5da Skip null type in ReturnTypeFromStrictScalarReturnExprRector as often not desired (#5462)
2024-01-13 09:43:24 +00:00
Tomas Votruba
8b20f236c0 Updated Rector to commit 2ec55701f292770fc7be3ca6e434d437e59c333b
2ec55701f2 [Performance] Fix filter cache on SkippedClassResolver (#5460)
2024-01-13 01:44:47 +00:00
Tomas Votruba
bebd959a24 Updated Rector to commit ac072bc8af186b2c86256aa7d29e52bb608ece27
ac072bc8af feat: add an option to skip renaming promoted property (#5457)
2024-01-11 23:02:48 +00:00
Tomas Votruba
e61f4b3c7b Updated Rector to commit f24b01ae0af6cdf4517fee0d74d79cc39d31f602
f24b01ae0a Remove CI status for rector/phpstan-rules on Readme (#5456) (#5458)
2024-01-11 15:31:55 +00:00
Tomas Votruba
ca876bf90c Updated Rector to commit 9193b276de2d9e51e063740a9fea61a559750f19
9193b276de Clean up concat empty string on regex constant usage (#5449)
2024-01-10 05:55:03 +00:00
Tomas Votruba
bddc91bccd Updated Rector to commit b71c3265d5f90745d52b081a1201e3d97617e14a
b71c3265d5 fix: RenameMethodRector should handle NullsafeMethodCall (#5444)
2024-01-07 16:56:38 +00:00
Tomas Votruba
29eada363c Updated Rector to commit d3791938add9fe1faddfd404ab76183235c1df2f
d3791938ad [automated] Apply Coding Standard (#5440)
2024-01-07 00:31:04 +00:00
Tomas Votruba
1142f3d356 Updated Rector to commit 86e740248314edf23ef3307ac2a804a54c898282
86e7402483 Allows to convert Spatie enum names to snake upper case (#5435)
2024-01-06 13:17:15 +00:00
Tomas Votruba
3c0a61462c Updated Rector to commit 9a794f4ac4a100c1bffbf6af5a0c15f9628f3b90
9a794f4ac4 [TypeDeclaration] Handle with default null on ParamTypeByMethodCallTypeRector (#5437)
2024-01-06 06:01:40 +00:00
Tomas Votruba
8728d93e41 Updated Rector to commit 55a787b9a2a18d7b131e74f0bc0d244989f6c92e
55a787b9a2 [CodeQuality] Handle crash with call inside loop on SimplifyForeachToCoalescingRector (#5436)
2024-01-06 05:25:58 +00:00
Tomas Votruba
2b45fbe814 Updated Rector to commit 3d71ae36b00e22fb5430e1812af95182c0e58904
3d71ae36b0 [TypeDeclaration] Skip re-assign with call and use as arg on StrictArrayParamDimFetchRector (#5434)
2024-01-05 13:43:19 +00:00
Tomas Votruba
b433dedda4 Updated Rector to commit d4f6b91f922bd52289d923aff07691d07e455cb1
d4f6b91f92 [TypeDeclaration] Allow both integer and string index array on StrictArrayParamDimFetchRector (#5433)
2024-01-05 13:13:40 +00:00
Tomas Votruba
feacfd524a Updated Rector to commit 971571be0cbcc21f1d6c7861c17423aef053b499
971571be0c [TypeDeclaration] Skip with empty() check on StrictArrayParamDimFetchRector (#5432)
2024-01-05 12:46:00 +00:00
Tomas Votruba
41a86add1d Updated Rector to commit b007a8bd11ea0451b50dbafbacd5450b295f6266
b007a8bd11 [Php83] Add implements interface support on AddOverrideAttributeToOverriddenMethodsRector (#5429)
2024-01-04 19:14:21 +00:00
Tomas Votruba
5457aea4e0 Updated Rector to commit 1f9829d2a3820f39fe0601b996c5cba71ffb42b0
1f9829d2a3 [Strict] Add StaticProperty supporton may be unitialized static property on DisallowedEmptyRuleFixerRector (#5428)
2024-01-04 15:49:28 +00:00
Tomas Votruba
5c10ef9158 Updated Rector to commit 09c077e25801da58834be284a792c3987ea806ef
09c077e258 [TypeDeclaration] Add false and true in union support on ReturnUnionTypeRector (#5355)
2024-01-03 07:52:06 +00:00
Tomas Votruba
1daa932d00 Updated Rector to commit 5c0397910fbd9735c375c4632ec116ebe8609f25
5c0397910f Add missing rule doc (#5426)
2024-01-02 21:38:33 +00:00
Tomas Votruba
350042dba4 Updated Rector to commit 9144efc05cf4d084d4af69f4df0be9d7a66e5869
9144efc05c Keep called method in RemoveEmptyClassMethodRector (#5425)
2024-01-02 20:43:50 +00:00