Commit Graph

3855 Commits

Author SHA1 Message Date
Tomas Votruba
3bcc7247cb Updated Rector to commit ac8fc4c418132ab78ca3c0d61d8533bf530fe58f
ac8fc4c418 [Core] Improve performance: only reindex Node Attributes when Original Node is not null (#3043)
2022-11-11 11:46:13 +00:00
Tomas Votruba
197d502349 Updated Rector to commit 51c2bbe321adb08bb8f35cb8ce71f61fc456fcd4
51c2bbe321 [Php81][Restoration] Handle crash on ReadOnlyPropertyRector+MakeTypedPropertyNullableIfCheckedRector (#3046)
2022-11-11 11:41:25 +00:00
Tomas Votruba
d72c3a41d9 Updated Rector to commit 8ede862b8de3239aafea64484802903aaa6d5e95
8ede862b8d Update phpstan message (#3042)
2022-11-10 16:47:52 +00:00
Tomas Votruba
d9e32f78d0 Updated Rector to commit baf8394798205ee0d9c6f27e72f018e0996e624f
baf8394798 Fix var/property usage for RemoveUnusedNonEmptyArrayBeforeForeachRector. (#3040)
2022-11-10 07:49:28 +00:00
Tomas Votruba
329458c65d Updated Rector to commit 10c6a3047fde6a6a2f94c9260dc3482de6e7f5c0
10c6a3047f [Php80] Add ::class support on GetDebugTypeRector (#3039)
2022-11-08 13:37:31 +00:00
Tomas Votruba
bba6495f7d Updated Rector to commit 10346eea20d2222819f59b2ae994acc0948352e4
10346eea20 Apply node->isFirstCallable() check early before ->getArgs() when possible on CallLike (#3038)
2022-11-07 17:28:06 +00:00
Tomas Votruba
c0fad45833 Updated Rector to commit 49917308b21560e58d22e7faec5924261d12ec4c
49917308b2 Clarify SwapFuncCallArguments rule documentation (#3036)
2022-11-07 09:45:26 +00:00
Tomas Votruba
cc3b0a4b46 Updated Rector to commit b7a64276d51f16a3c5cd7af482a20c6c9f70c656
b7a64276d5 [Php55] Handle crash on ([[:upper:]]+) regex on PregReplaceEModifierRector (#3037)
2022-11-07 09:32:02 +00:00
Tomas Votruba
ce3c134b0d Updated Rector to commit a5051ff31121d95ac2ccf7db351ea486024a0b3f
a5051ff311 Bump to PHPStan ^1.9.0 (#3033)
2022-11-04 07:12:49 +00:00
Tomas Votruba
1724f088d6 Updated Rector to commit 6902b17851f2b7172c0351e72cd1d4263684818f
6902b17851 InlineConstructorDefaultToPropertyRector fix code example (#7465) (#3028)
2022-11-02 00:04:20 +00:00
Tomas Votruba
6afda57164 Updated Rector to commit 9e4a9c0c25fbbd630cac07c9dab074f8dc9c54b8
9e4a9c0c25 [CodeQuality] Add TernaryEmptyArrayArrayDimFetchToCoalesceRector (#3027)
2022-11-01 19:57:56 +00:00
Tomas Votruba
ddc864eff4 Updated Rector to commit 7b7d5a4b8bb61b52a298cbf941b7df131897f55b
7b7d5a4b8b Revert string specific identifier values on Type Mappers (#3024)
2022-11-01 14:15:38 +00:00
Tomas Votruba
0f38f3753c Updated Rector to commit af4cf28751f652d2ee1a8319d6cb39bf8614a1c1
af4cf28751 [DX] Use directly instanceof (#3021)
2022-10-28 10:16:48 +00:00
Tomas Votruba
c07fbf550b Updated Rector to commit f915a1f1c9c178fa40f7443dab547397245be278
f915a1f1c9 [Php80] Skip callable type different definition on ClassPropertyAssignToConstructorPromotionRector (#3010)
2022-10-24 08:19:06 +00:00
Tomas Votruba
e17cd185d3 Updated Rector to commit b4c0637b1f59b5110a41205df6af51105bee7520
b4c0637b1f Register Ctype functions (#3008)
2022-10-23 13:38:34 +00:00
Tomas Votruba
c3426445a0 Updated Rector to commit 0f1af3c50904de090dcbbf89460de3ad83169055
0f1af3c509 [Php80] Handle crash on extends \mysqli on AddParamBasedOnParentClassMethodRector (#3009)
2022-10-23 13:36:33 +00:00
Tomas Votruba
d5ca88382b Updated Rector to commit 64b241f9922cebf368dc705c7931404e32980852
64b241f992 [AutoImport] Add support use existing imported short name (#3005)
2022-10-22 12:50:23 +00:00
Tomas Votruba
e8603ff6cb Updated Rector to commit e4ec1f9d52d17b7d9f0effe1230f2e0778156ba4
e4ec1f9d52 [Php70] Handle crash on First class callable on ThisCallOnStaticMethodToStaticCallRector (#3003)
2022-10-19 11:11:32 +00:00
Tomas Votruba
edd2c3657d Updated Rector to commit 71ffc807faa4ee0ec144d5a7b6051a7c86c730c8
71ffc807fa Update all classlike pseudo rector (#3002)
2022-10-18 11:35:10 +00:00
Tomas Votruba
fe83c2a756 Updated Rector to commit 56620a9e3f49a1a71c6586752c9d5f67c0e7281c
56620a9e3f [CodeQuality] Skip different array_filter value on SimplifyEmptyArrayCheckRector (#3000)
2022-10-17 13:38:23 +00:00
Tomas Votruba
f459d3e9f0 Updated Rector to commit 63976bccf69c247b0a47407fb9d8f92daee4f94e
63976bccf6 Compatibility with BetterReflection 6.x (#2999)
2022-10-17 13:37:08 +00:00
Tomas Votruba
cb2aa6330e Updated Rector to commit 71b1142ee41eceef21d9c3d3a1bf5bc4f67ad9d2
71b1142ee4 [CodeQuality] Skip different value left and right on SimplifyEmptyArrayCheckRector (#2998)
2022-10-17 09:13:38 +00:00
Tomas Votruba
292c8dba69 Updated Rector to commit 5d1f686bc072284b8d2b1319dd34cdbeb7c1010b
5d1f686bc0 NullToStrictStringFuncCallArgRector - Register a few more functions (#2994)
2022-10-16 08:59:58 +00:00
Tomas Votruba
5a0db977a5 Updated Rector to commit 34040f38fa28b4980b3ba755dc6990afdd8fd613
34040f38fa [CodeQuality] Register SimplifyUselessLastVariableAssignRector to code-quality config set (#2993)
2022-10-16 07:31:59 +00:00
Tomas Votruba
4f7e013ec1 Updated Rector to commit ee222b28938a1debe2849c45660097eb1d6eeb5f
ee222b2893 Assert JoinColumns in CPP should be converted (#2991)
2022-10-15 22:34:17 +00:00
Tomas Votruba
ee8ab57a67 Updated Rector to commit f4f758c7431f66bc97a019eb53055d05c15705c6
f4f758c743 Fix missing extra import on NestedAnnotationToAttributeRector (#2989)
2022-10-15 22:31:48 +00:00
Tomas Votruba
2c34505711 Updated Rector to commit ea25cb04aa92e0961a120347daaf7590e8c83782
ea25cb04aa apply rector (#2990)
2022-10-15 21:17:53 +00:00
Tomas Votruba
de1025734c Updated Rector to commit 4f8a0ad5194898f6947276b308c53e391cf524ac
4f8a0ad519 Add new rule to simplify a last useless variable assignment. (#2963)
2022-10-15 15:39:52 +00:00
Tomas Votruba
a018694585 Updated Rector to commit ee04ee1dc59ff0a6c3ff5d6558612dce7757a8f2
ee04ee1dc5 Fix multi property default assign (#2986)
2022-10-14 16:51:28 +00:00
Tomas Votruba
c694bb8a08 Updated Rector to commit c304b15884418eeba88cebd2a8f090e0abafbaa1
c304b15884 [Core] Remove second param on ClassLikeAstResolver::resolveClassFromClassReflection() (#2975)
2022-10-13 11:06:06 +00:00
Tomas Votruba
edf6290721 Updated Rector to commit d2ff17ea434ef68e13e62126ec463002e861eaba
d2ff17ea43 [Php81] Skip assigned after defined as constructor promotion on ReadOnlyPropertyRector (#2976)
2022-10-05 09:16:10 +00:00
Tomas Votruba
7c3354e47c Updated Rector to commit ae60cb41904b30c959d49b3e081cb54c83633479
ae60cb4190 Fix wrong results in ExactCompareFactory (#2973)
2022-10-04 08:17:49 +00:00
Tomas Votruba
e87c848801 Updated Rector to commit ff4d797c73a51a3fb12cb644c6911ecd7313ec1b
ff4d797c73 [DeadCode][EarlyReturn] Handle RemoveUnusedVariableAssignRector+RemoveAlwaysElseRector (#2964)
2022-10-02 20:24:31 +00:00
Tomas Votruba
4dfccb43b5 Updated Rector to commit b5a5973565b75d04fa88428b80774f8a706c692e
b5a5973565 [DeadCode][Privatization] Handle crash on RemoveDeadZeroAndOneOperationRector+ChangeReadOnlyPropertyWithDefaultValueToConstantRector (#2962)
2022-09-29 16:10:59 +00:00
Tomas Votruba
de60227746 Updated Rector to commit cbe52ed52d2231d1487196fddf114c7fae341555
cbe52ed52d [Php80] Skip no default next indirect in return Expr on ChangeSwitchToMatchRector (#2959)
2022-09-27 20:28:08 +00:00
Tomas Votruba
89cb1be74d Updated Rector to commit eeacb4fb2889cd04a4ef532c59337089dc8ecb7c
eeacb4fb28 Add support for interface in AnnotationToAttributeRector rule (#2958)
2022-09-27 14:38:17 +00:00
Tomas Votruba
debee1711f Updated Rector to commit 6b3ce0af37a7fbae87d06e43bc485616bf81be3e
6b3ce0af37 clean up debug code (#2955)
2022-09-24 15:16:39 +00:00
Tomas Votruba
fb7d11d4dc Updated Rector to commit 2015f4680793359cf0135a5f1a9f3e74b6ee632a
2015f46807 [AutoImport] Add support for auto import in alias same last name (#2952)
2022-09-24 15:03:19 +00:00
Tomas Votruba
44e9f0dd99 Updated Rector to commit 429c9c087662fbd35e10e5d044b63aabfb1872f7
429c9c0876 [Php81] Handle crash insensitive function name on NullToStrictStringFuncCallArgRector (#2953)
2022-09-24 08:51:57 +00:00
Tomas Votruba
465ae70f0e Updated Rector to commit 54cc8e7a839343023a10a4ee230b9973dd03c376
54cc8e7a83 [CodeQuality] Skip nullable mixed on ReturnTypeFromStrictScalarReturnExprRector (#2947)
2022-09-23 13:05:02 +00:00
Tomas Votruba
9fc996728a Updated Rector to commit df36e385def96b447520c35e341e46e16cbffb56
df36e385de [Naming] Add TwigEnvironment special name to RenameParamToMatchTypeRector to keep the context (#2951)
2022-09-23 10:45:14 +00:00
Tomas Votruba
2395bb1685 Updated Rector to commit 54ff28da2aebcbb38d1f740be83dc839deeb4a99
54ff28da2a Skip short class names on StringClassNameToClassConstantRector, as mostly internal classes or strings (#2950)
2022-09-23 10:18:07 +00:00
Tomas Votruba
c4ec650b29 Rector 0.14.3 2022-09-23 09:46:53 +00:00
Tomas Votruba
35d8c7931a Updated Rector to commit 013263141ed4c13fefdb10c60c0719f38049d3fb
013263141e ParamAnalyzer: Accept all FunctionLike (#2945)
2022-09-23 09:44:22 +00:00
Tomas Votruba
3bad479870 Updated Rector to commit 1743bb1a9a95bf0d9353976930533ce008c6f05d
1743bb1a9a [Php56] Skip after exit() on AddDefaultValueForUndefinedVariableRector (#2949)
2022-09-23 07:54:29 +00:00
Tomas Votruba
a548d35868 Updated Rector to commit f846afc61bdd4839085f265b505b60cf1b866553
f846afc61b Fix type error on downgraded version. (#2946)
2022-09-22 15:56:27 +00:00
Tomas Votruba
5f9e3588ab Updated Rector to commit 8615aa59fb9e0f650e529f8e08e02b8b3a7dd0ac
8615aa59fb [DeadCode] Handle crash on RemoveUnusedPrivatePropertyRector+RemoveJustPropertyFetchForAssignRector (#2943)
2022-09-21 06:37:36 +00:00
Tomas Votruba
1fbb663af8 Updated Rector to commit 05dc89279c87e074f6a974ab5a973a36c8262723
05dc89279c Add refactorings for ...val() (#2942)
2022-09-20 13:34:09 +00:00
Tomas Votruba
72df4482bd Updated Rector to commit 603502724909905922d0c18646fb86b51d844fc9
6035027249 Skip magic methods for StaticCallOnNonStaticToInstanceCallRector. (#2941)
2022-09-20 05:49:46 +00:00
Tomas Votruba
e46f4f4e38 Updated Rector to commit 35b0d39f63b1d8dff169ee673c6e6de1268304b3
35b0d39f63 Skip method of abstract class for StaticCallOnNonStaticToInstanceCallRector. (#2938)
2022-09-19 17:42:48 +00:00