Commit Graph

1046 Commits

Author SHA1 Message Date
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
fc28a000c6 Updated Rector to commit cdc9e6b6d8ce2446e8860016997ad37e8d3b7d44
cdc9e6b6d8 Remove ArrayKeysAndInArrayToArrayKeyExistsRector as narrow, does not check variable usage and might be on purpose (#4084)
2023-06-05 13:46:42 +00:00
Tomas Votruba
5edc8437c3 Updated Rector to commit 0e9192f70cc10e4684adec85a0ab5f67c6afcad3
0e9192f70c Remove deprecated UnionTypesRector and NarrowUnionTypeDocRector, use strict-based rules from TypeDeclaration set instead (#4069)
2023-06-04 21:38:22 +00:00
Tomas Votruba
18f8207b59 Updated Rector to commit 861022a70bd9f9c8b91f20c7dfacb0d297d33e9a
861022a70b Remove RemoveAlwaysTrueConditionSetInConstructor, as overly specific and not practical; better handle with PHPStan (#4065)
2023-06-04 17:57:18 +00:00
Tomas Votruba
f0c9d40cc2 Updated Rector to commit 106bc8ed2efbf98e99c22d6098a78ec2d6588c58
106bc8ed2e Remove AttributeCompatibleAnnotationRector, as only for one-time migration of private project, not suitable for general use (#4064)
2023-06-04 17:52:08 +00:00
Tomas Votruba
936365906d Updated Rector to commit 1d8b12dc022dc4ff9c9c26a2fc1ea409027d271b
1d8b12dc02 Remove NormalizeNamespaceByPSR4ComposerAutoloadRector as only moves files to namespaces, does not update any class referenes; better use IDE here (#4057)
2023-06-03 16:37:32 +00:00
Tomas Votruba
36bff0a577 Updated Rector to commit 105df5f485c8e3b2e9b75320555a32b5325186b5
105df5f485 Remove NewToMethodCallRector as unused core and no other extension, niche to use, better handle by PHPStorm (#4029)
2023-05-30 13:20:44 +00:00
Tomas Votruba
0ac7af6da1 Updated Rector to commit 3fb912c94432b75fb50a14071f584671a882970d
3fb912c944 Rebuild docs (#4002)
2023-05-28 16:17:31 +00:00
Tomas Votruba
9b4ae51505 Updated Rector to commit 4d4c73d5957cd03b26d4a7f6b6b3e209f4506cd3
4d4c73d595 [automated] Apply Coding Standard (#3998)
2023-05-28 00:32:17 +00:00
Tomas Votruba
ce521dbd34 Updated Rector to commit bb3d37ab214177a4e2877a5e0b383d055c62b6ad
bb3d37ab21 Remove ChangeReflectionTypeToStringToGetNameRector as niche and overly detailed, better refactor reflectio na as a whole (#3976)
2023-05-26 13:24:53 +00:00
Tomas Votruba
1539fc211a Updated Rector to commit c1cb710c872d25f5daa3fd085fc24640716a80f4
c1cb710c87 Remove ReservedObjectRector as requires explicit configuration and is handled by RenameClassRector already (#3975)
2023-05-26 13:14:15 +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
96fc00fd8e Updated Rector to commit 3c69a0f9d7b075cef7e0e382eee94234f3629efa
3c69a0f9d7 Remove AddPregQuoteDelimiterRector as very narrow area and has not context awareness, better handle manually (#3927)
2023-05-22 13:43:31 +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
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
c6385617d2 Updated Rector to commit a4d6d414fb2f6ce98c792178895ab01664fab358
a4d6d414fb [TypeDeclaration] Add BoolReturnTypeFromStrictScalarReturnsRector (#3898)
2023-05-19 15:03:57 +00:00
Tomas Votruba
5a424135e9 Updated Rector to commit a8fdf00925e9b46f3372da01d90d52780d1e802a
a8fdf00925 [PHP 7.0] Add IfIssetToCoalescingRector (#3878)
2023-05-17 09:47:50 +00:00
Tomas Votruba
1b8d2812ef Updated Rector to commit c8f697b16d888505c2bfbbcaba1665402091159b
c8f697b16d Remove ToStringToMethodCallRector as not practical and only for demo, FalseReturnClassMethodToNullableRector, as requires detailed custom refactoring (#3854)
2023-05-15 13:05:02 +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
281f59d306 Updated Rector to commit 7f49261e293df93ac9a81dd49e59ad4abed9ed41
7f49261e29 Make ReturnNeverTypeRector work with type declaration, add it to PHP 8.1 set (#3852)
2023-05-14 22:40:25 +00:00
Tomas Votruba
270692ae54 Updated Rector to commit 0a7be603fcc467ac3956081bf83db9c0d5350eee
0a7be603fc Remove MakeTypedPropertyNullableIfCheckedRector as old fix of TypedPropertyRector rule, removed months ago (#3851)
2023-05-14 16:14:48 +00:00
Tomas Votruba
e02a2a45af Updated Rector to commit 33e59eeadf3da67db8dcdebfc8bef3701a17592a
33e59eeadf Remove UpdateFileNameByClassNameFileSystemRector niche rule that was added just for example sake (#3849)
2023-05-14 16:07:53 +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
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
aceca9ea6e Updated Rector to commit 6322d7c7c5bf262524b254cb329644cd051f94b2
6322d7c7c5 [automated] Re-Generate Nodes/Rectors Documentation (#3832)
2023-05-14 00:32:54 +00:00
Tomas Votruba
e241ac1961 Updated Rector to commit 4db20ca6d5c2106a71d6c7113889f263aa379904
4db20ca6d5 [Console] Allow https url instead of git:// on SetupCICommand (#3799)
2023-05-11 15:16:47 +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
2cb797e1b1 Updated Rector to commit 11b278ca27f23ba4a2c55df877664fc23413a81d
11b278ca27 [CodeQuality] Remove SimplifyUselessLastVariableAssignRector as overly complex and should be handled individually (#3784)
2023-05-10 07:10:45 +00:00
Tomas Votruba
2cad3fa15d Updated Rector to commit 76da9489fe16c5854d5fed29b81197940025e975
76da9489fe Make ConsecutiveNullCompareReturnsToNullCoalesceQueueRector use of StmtsAwareInterface (#3783)
2023-05-10 06:07:59 +00:00
Tomas Votruba
6105d98780 Updated Rector to commit cb30fd90e2fafe2b0bc7f6bd3f3ec2e6c09a4b09
cb30fd90e2 [Transform] Remove MethodCallToAnotherMethodCallWithArgumentsRector as unused (#3777)
2023-05-08 21:19:03 +00:00
Tomas Votruba
dffd0b0f29 Updated Rector to commit 26550ca939279bf296f72b2457545c1a0ade3f8e
26550ca939 [Transform] Remove DimFetchAssignToMethodCallRector as unused (#3775)
2023-05-08 20:52:46 +00:00
Tomas Votruba
fc5810aace Updated Rector to commit 18770166ed5ac0c0c02a4de87d789182bbb36a76
18770166ed [Transform] Remove ArgumentFuncCallToMethodCallRector as never used (#3774)
2023-05-08 20:37:13 +00:00
Tomas Votruba
39697489d4 Updated Rector to commit 5a32ed95b75b179e77c14a83a65f2eff1f1474b8
5a32ed95b7 [cleanup] Make use of getArgs(), remove ignores from phpstan.neon (#3770)
2023-05-08 10:34:06 +00:00
Tomas Votruba
4bf474e653 Updated Rector to commit be53013ca3dff5b3eca8cdb3e688d744585e2557
be53013ca3 [CodeQuality] Remove SimplifyIfExactValueReturnValueRector, as overly defensive + InlineSimplePropertyAnnotationRector as purely coding standard area (#3764)
2023-05-07 19:35:01 +00:00
Tomas Votruba
e7d9598446 Updated Rector to commit 3c592b05dc0aa78702a4b38d39711d78c404e279
3c592b05dc [CodeQuality] Remove ForToForeachRector, as overly deatiled and not reliable (#3747)
2023-05-06 21:47:33 +00:00
Tomas Votruba
67b4d9bb93 Updated Rector to commit 575e799aa59bc375fae671f469cb5b1574a96381
575e799aa5 Add SwapMethodCallArgumentsRector (#3726)
2023-05-06 18:21:26 +00:00
Tomas Votruba
442ebde599 Updated Rector to commit a39913ec9e3216b61fea7c90b634bc5a404323cf
a39913ec9e [automated] Re-Generate Nodes/Rectors Documentation (#3712)
2023-04-30 00:41:21 +00:00
Tomas Votruba
a93a36635a Updated Rector to commit fb89e317c52fb8a16e2db18edb80172adb17014e
fb89e317c5 [TypeDeclaration] Add WhileNullableToInstanceofRector (#3680)
2023-04-24 11:18:26 +00:00
Tomas Votruba
37ad4fbc43 Updated Rector to commit a4c1d7e481d426cb82d5a5bf89bfcac21deb3764
a4c1d7e481 [TypeDeclaration] Add BinaryOpNullableToInstanceofRector (#3631)
2023-04-19 11:05:06 +00:00
Tomas Votruba
4980a45b0b Updated Rector to commit 581fba01dfcc247be5dcec00903b72739b7eca6d
581fba01df [Php55] Add StaticToSelfOnFinalClassRector (#3629)
2023-04-19 07:12:58 +00:00
Tomas Votruba
c1432a728e Updated Rector to commit eb34dee89488a8869ae5b726b03c16fe2979f7f5
eb34dee894 [automated] Re-Generate Nodes/Rectors Documentation (#3617)
2023-04-16 00:32:04 +00:00
Tomas Votruba
ab279ddabc Updated Rector to commit edf54c85b6aadaecf064b797d340953697e0ca74
edf54c85b6 [Instanceof] Add FlipNegatedTernaryInstanceofRector (#3610)
2023-04-13 10:40:34 +00:00
Tomas Votruba
da7c61a9a9 Updated Rector to commit ebc2e7efa17d9871cc5d9b90a81c41d504a214db
ebc2e7efa1 Add new rule to remove function calls (#3524)
2023-04-10 08:19:12 +00:00
Tomas Votruba
c04c8097dc Updated Rector to commit 1f8d359d731ec0ecd4f92320626e74d2e1b41d05
1f8d359d73 [automated] Re-Generate Nodes/Rectors Documentation (#3549)
2023-04-02 00:33:26 +00:00
Tomas Votruba
093f3c0641 Updated Rector to commit ad9b5973ebff338b17452fb0240c1834126f388e
ad9b5973eb [automated] Re-Generate Nodes/Rectors Documentation (#3521)
2023-03-26 00:33:56 +00:00
Tomas Votruba
e27f3e5b0b Updated Rector to commit f87827ca264302c24015bc9d2a27a4a288a05682
f87827ca26 Implement  (#3430)
2023-03-09 22:50:19 +00:00
Tomas Votruba
9d9213d70c Updated Rector to commit 658e48f31fcb26a0e56740a49a994dbab3c1e6b5
658e48f31f Handle ->getDefaultValueExpression() return null (#3446)
2023-03-03 10:07:09 +00:00
Tomas Votruba
44595ed746 Updated Rector to commit 937bf3e28b7868d79c4679d8e1e03cfb2e366a42
937bf3e28b [Transform] Add MethodCallToFuncCallRector (#3391)
2023-02-19 13:39:22 +00:00
Tomas Votruba
13aa217ffa Updated Rector to commit 208d52e2a160e8563ef94e2afc53239f8ecf55cf
208d52e2a1 [CodeQuality] Remove DoWhileBreakFalseToIfElseRector, rather manual static spot and refactoring (#3367)
2023-02-08 17:44:29 +00:00
Tomas Votruba
6481c8dccc Updated Rector to commit 5f4edd9230355cadc311ba8e8954fb9ae5bdc849
5f4edd9230 Remove NonVariableToVariableOnFunctionCallRector, should be handled manually as might need attention (#3357)
2023-02-07 22:56:24 +00:00