Commit Graph

957 Commits

Author SHA1 Message Date
Tomas Votruba 039864701c Updated Rector to commit 764ef74406bf794b30f64d6c5a94e6abfebc4833
764ef74406 [DeadCode] Reduce findFirstPrevious() on RemoveUnusedvariableAssignRector (#3789)
2023-05-10 14:43:48 +00:00
Tomas Votruba a2c39b778e Updated Rector to commit 13d81f90894396f7e443cb5cb9198aeacb6bc05a
13d81f9089 [Cleanup] Make use of getArgs() directly (#3766)
2023-05-08 07:37:37 +00:00
Tomas Votruba 359cac195c Updated Rector to commit b116bc0cbda89ff560680be74e6e35c9831b0e07
b116bc0cbd Defer type-resolving in RemoveJustPropertyFetchRector (#3761)
2023-05-08 04:31:43 +00:00
Tomas Votruba 82228b7056 Updated Rector to commit ea3d4f164337d11e757a0348d5445efb4b6d5b2f
ea3d4f1643 Defer type-resolving in SideEffectNodeDetector (#3762)
2023-05-07 19:13:32 +00:00
Tomas Votruba 65abab80de Updated Rector to commit 5c1be93b80c3f7bfd8bd158ba0a55501a7acaefc
5c1be93b80 PHP 8.2 is supported (#3717)
2023-05-01 01:36:32 +00:00
Tomas Votruba f924c3de30 Updated Rector to commit 0dfc92f16f7d3d21a21ae5e6f6abb21467fb48da
0dfc92f16f Add declare strict_types rule, finally 🥳 (#3619
2023-04-17 15:47:09 +00:00
Tomas Votruba 9263d6613a Updated Rector to commit 195bb62accb975904892da79996ccfb61eda34cd
195bb62acc [DeadCode] Add early return check to RemoveUnusedNonEmptyArrayBeforeForeachRector (#3611)
2023-04-14 08:11:59 +00:00
Tomas Votruba c65ab46563 Updated Rector to commit 5ea7727cfd05ece95fa8730576360e58148b3d56
5ea7727cfd [DeadCode] Skip RemoveDuplicatedArrayKeyRector on ++index or --index  (#3606)
2023-04-11 04:16:20 +00:00
Tomas Votruba 2300088c0b Updated Rector to commit 08660ad7077c86c3c86e7d1cbd14d9d7d71cb450
08660ad707 Use isFloat() (#3594)
2023-04-09 00:39:59 +00:00
Tomas Votruba a03a19aeca Updated Rector to commit 273e4b43f1dbe84d426f4db5ab7ea9b0b1fea190
273e4b43f1 Use isBoolean() (#3591)
2023-04-08 16:37:58 +00:00
Tomas Votruba 7025ec875c Updated Rector to commit 64cca7759d28f2dc0d17acdf55eb10779818726c
64cca7759d [DeadCode] Improve RemoveUnusedNonEmptyArrayBeforeForeachRector with && (#3587)
2023-04-08 14:11:59 +00:00
Tomas Votruba 3da290e4ab Updated Rector to commit dbb0e196a43d8c14a9de6abeef8fe081e95c51c2
dbb0e196a4 Revert all is* changes (#3584)
2023-04-08 13:25:07 +00:00
Tomas Votruba 9d60770133 Updated Rector to commit e66317aeb276bb0b544e7b4b55057c9dab5fbb73
e66317aeb2 fix cs (#3579)
2023-04-08 11:32:12 +00:00
Tomas Votruba e7c7a40197 Updated Rector to commit 437cc5aa660262603343cdbb193e0a54abf9037e
437cc5aa66 Use isBoolean() (#3570)
2023-04-08 01:12:35 +00:00
Tomas Votruba 75f99e1dc0 Updated Rector to commit a36a4d9fcb244d5d49a45255d9581a16410dff7a
a36a4d9fcb Remove unused imports (#3567)
2023-04-05 19:01:37 +00:00
Tomas Votruba f5640c1359 Updated Rector to commit 5e5681d9edbb438b5782b45fde6e88650aa3843f
5e5681d9ed [NodeRemover] Use return null after ->removeNode() (#3558)
2023-04-03 17:20:08 +00:00
Tomas Votruba 77c06429df Updated Rector to commit 53f549df59999185aba90f5043982dec1973d230
53f549df59 [DeadCode] Remove property comment same line on RemoveUnusedPrivatePropertyRector (#3547)
2023-04-01 19:30:08 +00:00
Tomas Votruba 9038a0d99c Updated Rector to commit 1a91d04c5256e451c744eeb848aaa0182dd227c5
1a91d04c52 [CodeQuality] Add cast scalar support on ReturnTypeFromStrictScalarRector (#3544)
2023-04-01 10:14:17 +00:00
Tomas Votruba 817a8ccc28 Updated Rector to commit 58d862b6f54529f25ecb994ea5e7d2c3eb69f210
58d862b6f5 [DeadCode] Remove previous and parent attribute usage on RemoveNullPropertyInitializationRector (#3541)
2023-03-30 20:44:38 +00:00
Tomas Votruba 8cbca2ef81 Updated Rector to commit 180d9a4fad89124d3f547af178f5179e4d4277ee
180d9a4fad [DeadCode] Remove previous attribute usage on RemoveDeadConditionAboveReturnRector (#3538)
2023-03-29 20:32:46 +00:00
Tomas Votruba 71617cf3ae Updated Rector to commit 8ff7747eab74154d32f76c9db4443762567e6dda
8ff7747eab RemoveNonExistingVarAnnotationRector: Allow return annotations (#3534)
2023-03-28 22:41:17 +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 bc4d62886b Updated Rector to commit b2e90e8df6609979f068858c5912aba7e2d1ede3
b2e90e8df6 [DeadCode] Skip assign inside if cond on RemoveAlwaysTrueIfConditionRector (#3447)
2023-03-04 08:51:42 +00:00
Tomas Votruba 7d0f151a40 Updated Rector to commit a2cd7283fbf2d6b2904016c51e3f4a545caa0256
a2cd7283fb Typo fix comment php 7.3 compat on rector workflow (#3432)
2023-03-01 13:00:30 +00:00
Tomas Votruba 3689432167 Updated Rector to commit b1b48bceab3cf56858ebe565a22bba74458a497f
b1b48bceab [DeadCode] Skip if cond use variable from @param doc on RemoveAlwaysTrueIfConditionRector (#3402)
2023-02-22 18:49:35 +00:00
Tomas Votruba 908a3c39d3 Updated Rector to commit 648a2f5ca994605a85e8f10279936a864eefc09c
648a2f5ca9 Fix BleedingEdgeIncludePurifier to use random value on temporary file to avoid crash (#3396)
2023-02-21 17:09:39 +00:00
Tomas Votruba 7e939b3a17 Updated Rector to commit 91ddd680c78eacc11006126398d64c4b97d38694
91ddd680c7 [TypeDeclaration] Remove unused intersection docblock on nullable intersection on TypedPropertyFromAssignsRector (#3373)
2023-02-12 18:36:15 +00:00
Tomas Votruba 1044a9f5fe Updated Rector to commit db4ec0218f0ad9670790d5725c98bbb34120a97e
db4ec0218f [TypeDeclaration] Handle nullable intersection on TypedPropertyFromAssignsRector (#3372)
2023-02-12 17:34:35 +00:00
Tomas Votruba 66cc09e8b6 Updated Rector to commit d118ae38e265476684bcf566b87301cca5716ed9
d118ae38e2 Use phpstan-deprecation-rules (#3330)
2023-02-02 09:24:12 +00:00
Tomas Votruba 827c456b07 Updated Rector to commit fe7ed4fb9a4ed31a13f70ee9e6595552aecb0f58
fe7ed4fb9a Skip attribute in RemoveUnusedPromotedPropertyRector (#3280)
2023-01-13 19:41:09 +00:00
Tomas Votruba 0fc42c2559 Updated Rector to commit 47fa234379b7b9f28081e8bc6e683628f8d53f2b
47fa234379 [CodeQuality] Add Variable support on class arg on InlineIsAInstanceOfRector (#3261)
2023-01-02 11:58:30 +00:00
Tomas Votruba 764b0a2692 Updated Rector to commit cb5b01223d46272004e947f122ae1e36d516f83a
cb5b01223d [automated] Re-Generate Nodes/Rectors Documentation (#3259)
2023-01-01 00:36:31 +00:00
Tomas Votruba dfa8f9c12d Updated Rector to commit 9a0938d8df9d8771d8d423eb4719cd7fe3b1ba0e
9a0938d8df [e2e] handle multiple classes with anonymous class on MultipleClassFileToPsr4ClassesRector file removed (#3253)
2022-12-25 10:55:21 +00:00
Tomas Votruba 96d8a22628 Updated Rector to commit 70fea54e77ffd186e41540d2b36c5362b073fbc4
70fea54e77 [DeadCode] Add TargetRemoveClassMethodRector (#3240)
2022-12-22 17:06:53 +00:00
Tomas Votruba b607ae2a53 Updated Rector to commit 0d6234b584f14d25e02c8c97afac7f6374aa306c
0d6234b584 [DeadCode] Skip standalone @return false or true on RemoveUselessReturnTagRector (#3202)
2022-12-15 14:08:31 +00:00
Tomas Votruba 41faaad8b8 Updated Rector to commit e71df1ba87d3c0189112b626e0e44880e3b608bf
e71df1ba87 [DeadCode] Skip append array data on RemoveJustPropertyFetchRector (#3201)
2022-12-14 19:45:13 +00:00
Tomas Votruba aec87d7b85 Updated Rector to commit 4a03eb97153dd3d3868d90feeb0a269f3be754e6
4a03eb9715 [DeadCode] Skip expr as MethodCall or StaticCall from ClassMethod @return string docblock on RecastingRemovalRector (#3187)
2022-12-11 16:22:41 +00:00
Tomas Votruba 2a553a9afd Updated Rector to commit 3dea2bdc4de76d217cc2d67cce4ccb41d2b4c7f3
3dea2bdc4d skip false positive chagne report on RemoveUselessParamTagRector (#3151)
2022-12-04 13:35:33 +00:00
Tomas Votruba ff75474d25 Updated Rector to commit 39f43c01cbc34a8bb064f056d39f1b8d2bd7a152
39f43c01cb Use Symfony ~6.1.x to avoid crash on update vendor-patch (#3134)
2022-12-01 14:10:32 +00:00
Tomas Votruba 789d270789 Updated Rector to commit ecec40ce9d1b075c65dbbbabe38dbd70d5a50df5
ecec40ce9d [DeadCode] Skip re-assigned variable in RemoveJustPropertyFetchRector (#3124)
2022-11-28 16:12:25 +00:00
Tomas Votruba d60996d358 Updated Rector to commit 63ca8727cbf38fdbcc1a68c429ce3dc2340f268e
63ca8727cb [DeadCode] Fix RemoveJustPropertyFetchRector to skip concat assigns (#3123)
2022-11-28 15:58:59 +00:00
Tomas Votruba 18b5311e05 Updated Rector to commit fa9a953fc8df6d31c24b0415b177580f7edd4100
fa9a953fc8 [Php80] Skip possible numeric string switch cond with all integer case cond on ChangeSwitchToMatchRector (#3067)
2022-11-15 20:31:43 +00:00
Tomas Votruba b0ce719527 Updated Rector to commit 04257d3c76ee23722447433f07c8e5678ac9a07b
04257d3c76 Utilize Type->isArray() (#3065)
2022-11-15 15:22:43 +00:00
Tomas Votruba db8311e52e Updated Rector to commit e28e7a18fe894974b31eae2fa2ff829a130a8a05
e28e7a18fe Use the correct word (#3052)
2022-11-11 15:03:05 +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 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 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 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 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 a548d35868 Updated Rector to commit f846afc61bdd4839085f265b505b60cf1b866553
f846afc61b Fix type error on downgraded version. (#2946)
2022-09-22 15:56:27 +00:00
Tomas Votruba ac77f3a400 Updated Rector to commit 4923a147c3347d83b0cf302c03a4016e3b838a03
4923a147c3 [DeadCode] Skip nullable array on not empty on RemoveUnusedNonEmptyArrayBeforeForeachRector (#2935)
2022-09-18 11:37:35 +00:00
Tomas Votruba c5b7bc6035 Updated Rector to commit 90adbf0431d2f63e80bbb10807ff2786e19f068c
90adbf0431 [DeadCode] Skip assign if cond on RemoveUnusedNonEmptyArrayBeforeForeachRector (#2918)
2022-09-07 10:25:01 +00:00
Tomas Votruba ed362f4e21 Updated Rector to commit 3de25c9cd3e7efcfa92c94f3cbdc533fdd6a115b
3de25c9cd3 [DeadCode] Handle assign empty array on if cond on RemoveUnusedNonEmptyArrayBeforeForeachRector (#2917)
2022-09-07 08:32:58 +00:00
Tomas Votruba 62e856362b Updated Rector to commit a39844ee53169fb0b6d1184672eeb1869a541dd2
a39844ee53 [misc] Add Expr type to value resolver, remove RemoveFuncCallRector as niche feature, cleanup ClassManipulator from unused methods (#2900)
2022-09-03 08:03:15 +00:00
Tomas Votruba 28c719d1fb Updated Rector to commit 8961d20f56fa4b39bb21feec1f24422398f13dba
8961d20f56 [DX] Localize multi instance checker and privates accessor from Symplify + bump to PHPStan 1.8.3 (#2883)
2022-09-01 19:30:48 +00:00
Tomas Votruba 6c20d257e3 Updated Rector to commit d3d18d442c8f2ca64f5ebef5c7a7541938fa1e2a
d3d18d442c keep relative paths
2022-09-01 09:30:44 +00:00
Tomas Votruba afd984fc4e Updated Rector to commit b8c70125cda3a0fbdff216dfccaf065d8fe1aa2b
b8c70125cd [phpstan] Resolve duplicated methods (#2869)
2022-08-31 09:31:19 +00:00
Tomas Votruba 5edd3689a8 Updated Rector to commit bb59a7c99ad30770689fe011c89377402bf6c7ba
bb59a7c99a [DX] Inline symplify/astral to use only active classes (#2851)
2022-08-29 20:49:28 +00:00
Tomas Votruba d94a78124e Updated Rector to commit d894cccb8535fea0ad8ab93ead4a4383c81d56b8
d894cccb85 [DeadCode] Skip object shape pseudo-type in RemoveNonExistingVarAnnotationRector (#2837)
2022-08-24 14:03:58 +00:00
Tomas Votruba 87509424bf Updated Rector to commit debe56260b932715c63eacc73c5495c276784a1c
debe56260b simplify rule docs config
2022-08-24 08:53:31 +00:00
Tomas Votruba 0e5ee3dc93 Updated Rector to commit 6c8c40bb746ce70ab8faa7e80ae088edaba771e7
6c8c40bb74 [DeadCode] Merge RemoveDeadConstructorRector, to RemoveEmptyClassMethodRector with same behavior (#2829)
2022-08-24 08:43:17 +00:00
Tomas Votruba 88b118d794 Updated Rector to commit 58edce71bb42b06df87e863ee9bf3df4c7b65e27
58edce71bb [VendorPatch] Register nikic-php-parser-lib-phpparser-node-stmt-namespace-php into vendor-patches list (#2825)
2022-08-24 07:54:32 +00:00
Tomas Votruba 1539934554 Updated Rector to commit 244fb1cebce834698e9d6f5a67a3d3552addf49d
244fb1cebc [DeadCode] Fix RemoveUnusedPrivateMethodParameterRector args keys re-order (#2770)
2022-08-17 08:52:30 +00:00
Tomas Votruba 26bacab80c Updated Rector to commit c0070b1d30a0040e3e58724ac1b3b339e168dcb5
c0070b1d30 [CodeQuality] Skip not ArrayType on ForeachItemsAssignToEmptyArrayToAssignRector (#2752)
2022-08-11 14:46:08 +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 f7bb838601 Updated Rector to commit f0425bc3cb3d5855da1bff9c38b872a9003e357b
f0425bc3cb Improve scope, PHPStan extension types (#2747)
2022-08-09 13:39:17 +00:00
Tomas Votruba 7e0a2dbc82 Updated Rector to commit 6ad7b03704e639c95759d14c67444009c3b93259
6ad7b03704 Revert Add class-string typehint to MethodCallRename (#2739)
2022-08-06 15:23:35 +00:00
Tomas Votruba ac89ac3559 Updated Rector to commit 502d0ad3805984c4e3c0a8c6636c1174068169fc
502d0ad380 [DeadCode] Handle assign in If_ cond on RemoveUnusedNonEmptyArrayBeforeForeachRector (#2734)
2022-08-05 09:27:15 +00:00
Tomas Votruba 184a304008 Updated Rector to commit 61b6e86d17923a29a7dad1530a9dd82bc3bf5ee2
61b6e86d17 [DeadCode] Skip RemoveAlwaysTrueIfConditionRector on property use by @var docblock on Trait (#2729)
2022-08-03 18:36:26 +00:00
Tomas Votruba 9063100051 Updated Rector to commit f99f19cd4328009bad8aaeab7d80f7d920628bca
f99f19cd43 Add class-string typehint to MethodCallRename (#2726)
2022-08-03 12:38:40 +00:00
Tomas Votruba 1d28ca109c Updated Rector to commit 5ec4cff203f68d9578719b54ce3a145efb32bc79
5ec4cff203 [Php56] Handle jump not Expression stmt next initialized on AddDefaultValueForUndefinedVariableRector (#2725)
2022-08-02 06:46:18 +00:00
Tomas Votruba 963e52618c Updated Rector to commit 89bd84eafaab9ab66a4fcd6a1a4df67d15040732
89bd84eafa [DeadCode] Skip RemoveAlwaysTrueIfConditionRector on property use by @var docblock (#2717)
2022-07-27 18:51:59 +00:00
Tomas Votruba 6d34684c5a Updated Rector to commit 69d3c92b00fd4cd4f435cd8974e5547251b5065e
69d3c92b00 [Php80] Add MixedTypeRector (#2701)
2022-07-27 08:28:59 +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 f01bc715ee Updated Rector to commit c74cda7cead18dc51061bd8540c64e98a6aec3b8
c74cda7cea Remove UnwrapFutureCompatibleIfFunctionExistsRector as very niche and specific (#2688)
2022-07-19 22:41:37 +00:00
Tomas Votruba 9c5eda645c Updated Rector to commit c9ecc86d7e1621b435aed598317a6962e22e8039
c9ecc86d7e Cleanup of assign void (#2679)
2022-07-18 23:10:43 +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 ce84017a24 Updated Rector to commit f6090319c24eb98de56d09353c24b5c30da9e7fc
f6090319c2 [PHPStan] Reduce PHPStan errors for narrow public - take 3 (#2674)
2022-07-17 12:27:00 +00:00
Tomas Votruba da70700f98 Updated Rector to commit ce32685688660a000848322caadcf336bfc282f8
ce32685688 [PHPStan] Reduce PHPStan errors for narrow public - take 2 (#2673)
2022-07-17 01:16:52 +00:00
Tomas Votruba 46dd47dd4e Updated Rector to commit ac94ddd5bd269b17afc339f39af711c02d56b34a
ac94ddd5bd [PHPStan] Reduce PHPStan errors for narrow public - take 1 (#2672)
2022-07-16 14:24:54 +00:00
Tomas Votruba 4ddedc166e Updated Rector to commit b1ae9a141523ee35af1f63aab39d945e8df03275
b1ae9a1415 [DeadCode] Handle crash on indirect parent BinaryOp on RemoveDuplicatedInstanceOfRector (#2652)
2022-07-11 13:39:30 +00:00
Tomas Votruba c2a85841bd Updated Rector to commit bf92b9c360eccb0a95b3b7f4a41efc4f875e5723
bf92b9c360 [DeadCode] Skip global and static variable on RemoveJustVariableAssignRector (#2641)
2022-07-08 21:39:04 +00:00
Tomas Votruba 4734e9dd3e Updated Rector to commit 2267ca2a16768e21da5fbfff53844ab5fb87f264
2267ca2a16 [DeadCode] Do not remove first class callable VariadicPlaceholder arg on RemoveUnusedPrivateMethodParameterRector (#2634)
2022-07-05 18:24:55 +00:00
Tomas Votruba 76fb7eb0e9 Updated Rector to commit dfc6e1d9c05a4ab0c861332298d3184763d9ebfb
dfc6e1d9c0 [DeadCode] Handle edge cases on RemoveJustVariableAssignRector (#2621)
2022-07-03 14:34:26 +00:00
Tomas Votruba 4153a8246a Updated Rector to commit 45c91eb8ba874853d5717d7267c85776b2502f9d
45c91eb8ba [DeadCode] Add RemoveJustVariableAssignRector (#2618)
2022-07-03 12:43:42 +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 8c06162529 Updated Rector to commit f608461e44c6a4008a2bff6c603ba9d52d3ffacf
f608461e44 Remove RemoveOverriddenValuesRector as flow of control is not reliable and could cause invalid removal (#2614)
2022-07-03 08:06:08 +00:00
Tomas Votruba fbc13bfea3 Updated Rector to commit e6e5895517eb301f3fa3b00759b06876cacde836
e6e5895517 [Naming] Skip used in arrow function args on RenameVariableToMatchMethodCallReturnTypeRector (#2599)
2022-07-01 07:39:49 +00:00
Tomas Votruba 8582284513 Updated Rector to commit ed92724c846790f1bab66cd81b3e20a6561694ed
ed92724c84 [DX] Try unused public const PHPStan rule (#2595)
2022-06-30 13:57:27 +00:00
Tomas Votruba 26c0e5c79b Updated Rector to commit 143f743d4ffb63b8fa6649841782d6d48735d472
143f743d4f [DX] Add MissingInSetCommand, to verify what rules are not part of their sets (#2594)
2022-06-30 13:31:25 +00:00
Tomas Votruba b3b9e9867d Updated Rector to commit 945fcc81ba3030f276e0a2d0cc8dd554e5e3171e
945fcc81ba [DeadCode] Handle always terminated Switch_ on RemoveUnreachableStatementRector (#2591)
2022-06-30 08:03:44 +00:00
Tomas Votruba 39d9381da5 Updated Rector to commit 407ad5fc5e
407ad5fc5e remove unused reference
2022-06-29 15:03:44 +00:00
Tomas Votruba 4522848db4 Updated Rector to commit 005ca33bcb
005ca33bcb [DowngradePhp80] Do not change correct Union array docblock to mixed[] on DowngradeUnionTypeDeclarationRector (#2555)
2022-06-22 22:21:39 +00:00
Tomas Votruba 138ae66a5b Updated Rector to commit 83f2b16f0c
83f2b16f0c [cs] add static lambda rule [closes #2514]
2022-06-21 15:38:46 +00:00
Tomas Votruba 8c3b690acb Updated Rector to commit 79b25e861d
79b25e861d [DeadCode] Handle always terminated If_ ElseIf_[] Else_ on RemoveUnreachableStatementRector (#2547)
2022-06-21 10:20:21 +00:00
Tomas Votruba bb396cb5b1 Updated Rector to commit 6c713a776c
6c713a776c [DeadCode] Handle always terminated TryCatch on RemoveUnreachableStatementRector (#2545)
2022-06-21 06:34:28 +00:00
Tomas Votruba dd31e833a9 Updated Rector to commit ce1c29184d
ce1c29184d [scoped] change only year and month, to make diff esaier to see; autoload is handled already
2022-06-11 12:27:46 +00:00
Tomas Votruba 9cf6755b1b Updated Rector to commit 9679ed6d77
9679ed6d77 [DeadCode] Skip using coealesce assign operator on return on RemoveUnusedPrivatePropertyRector (#2476)
2022-06-11 12:21:18 +00:00
Tomas Votruba b4891e547c Updated Rector to commit a5340c6f06
a5340c6f06 [Renaming] Do not rename docblock same name not found in use inside namespace (#2471)
2022-06-11 11:59:10 +00:00
Tomas Votruba a9ffd906d7 Updated Rector to commit 368dbb048c
368dbb048c docs: fix instruction in CONTRIBUTING.md (#2470)
2022-06-10 05:55:49 +00:00
Tomas Votruba fd299c83a6 Updated Rector to commit 712174b300
712174b300 Update packages-tests github action to use latest phpdoc-parser (#2467)
2022-06-09 13:32:28 +00:00
Tomas Votruba bfad5344a5 Updated Rector to commit d1b7a49e35
d1b7a49e35 [DeadCode][Php73] Ensure return  only when changed on RemoveDuplicatedCaseInSwitchRector+RegexDashEscapeRector (#2462)
2022-06-09 10:09:44 +00:00
Tomas Votruba 7e1e20e9f2 Updated Rector to commit 17b86d4b77
17b86d4b77 [CodeQuality] Remove unnecessary check next return removed no SimplifyIfElseToTernaryRector (#2457)
2022-06-09 06:07:50 +00:00
Tomas Votruba e8d4384fe8 Updated Rector to commit 6c8b3dc9f8
6c8b3dc9f8 [DeadCode][PHPUnit] handle crash on RemoveJustPropertyFetchForAssignRector+SimplifyForeachInstanceOfRector (#2453)
2022-06-08 05:54:40 +00:00
Tomas Votruba b6a8818d00 Updated Rector to commit cbbe410aff
cbbe410aff string prefixing is still needed
2022-06-07 09:46:15 +00:00
Tomas Votruba 9bb996bfce Updated Rector to commit a9779404d3
a9779404d3 try without prefixing string classes
2022-06-07 09:38:27 +00:00
Tomas Votruba bdec76e60e Updated Rector to commit 5ed173f14865e72ba7156645e2a79930152e1cc5
5ed173f148 skip RuleDefinition explicitly
2022-06-07 09:18:30 +00:00
Tomas Votruba bdfd24339f Updated Rector to commit 2e977bd3aad21113e0bb7e2aa9b102f6f1e9246d
2e977bd3aa deploy to original repository
2022-06-07 08:22:29 +00:00
Tomas Votruba 91f5aab952 Updated Rector to commit 4f07a4f30f
4f07a4f30f [Php74] Remove ReservedFnFunctionRector (#2447)
2022-06-07 06:40:10 +00:00
Tomas Votruba aa2cb1b997 Updated Rector to commit 0eba231b07
0eba231b07 [PHP 8.1] Move ConstantListClassToEnumRector to PHP 8.1 (#2444)
2022-06-06 17:12:56 +00:00
Tomas Votruba a28f4b14a4 Updated Rector to commit 2022-06-06 16:43:29 +00:00
Tomas Votruba 07acf2086f Updated Rector to commit 40d9102eab
40d9102eab [Renaming] Do not Rename Docblock inner Namespace on RenameClassRector (#2441)
2022-06-06 06:00:07 +00:00
Tomas Votruba 3113a2404c Updated Rector to commit dbb54b83cc
dbb54b83cc [automated] Re-Generate Nodes/Rectors Documentation (#2438)
2022-06-05 00:39:10 +00:00
Tomas Votruba 43409e9080 Updated Rector to commit 63cd74893d
63cd74893d [DeadCode] Improve RemoveJustPropertyFetchRector and apply (#2435)
2022-06-04 18:08:03 +00:00
Tomas Votruba 03ef1cdc0b Updated Rector to commit b0a6173550
b0a6173550 [DeadCode] Add RemoveJustPropertyFetchRector (#2433)
2022-06-04 17:37:29 +00:00
Tomas Votruba 63ef476ebe Updated Rector to commit 70261b71b7
70261b71b7 [DeadCode] Fix known array type in empty if foreach (#2432)
2022-06-04 13:19:43 +00:00
Tomas Votruba d755df61c1 Updated Rector to commit 36fe5d5d05
36fe5d5d05 [DeadCode] fix RemoveJustPropertyFetchForAssignRector for nested array dim fetch (#2427)
2022-06-04 09:21:35 +00:00
Tomas Votruba 98eb7617da Updated Rector to commit 283a9af3f0
283a9af3f0 [Renaming] Skip docblock rename different namespace on RenameClassRector (#2419)
2022-06-04 07:39:10 +00:00
Tomas Votruba 9537927564 Updated Rector to commit c5f35e4a1d
c5f35e4a1d [DeadCode] Add RemoveJustPropertyFetchForAssignRector (#2423)
2022-06-03 10:11:45 +00:00
Tomas Votruba 14da17860d Updated Rector to commit 7722a57d80
7722a57d80 [PHP 8.0] Add return type support to ConstantListClassToEnumRector (#2420)
2022-06-03 07:23:26 +00:00
Tomas Votruba 7f91dc01b6 Updated Rector to commit ba0869a9a5
ba0869a9a5 use directly ParamTagValueNode (#2412)
2022-06-02 07:26:09 +00:00
Tomas Votruba 02c0f07aa0 Updated Rector to commit 9187ff0430
9187ff0430 [Scoped] Update full_build.sh to reflect the current Github workflow for build scoped (#2413)
2022-06-02 07:23:49 +00:00
Tomas Votruba 780f0d3ad8 Updated Rector to commit 06b0b325da
06b0b325da remove victor, it handles only metafiles, not unused classes
2022-06-01 07:38:23 +00:00
Tomas Votruba 0501290a9d Updated Rector to commit dc6bd9680c
dc6bd9680c [e2e] Handle Parent Property empty missing Scope on StaticCallToMethodCallRector+RenameClassRector (#2396)
2022-05-31 07:17:00 +00:00
Tomas Votruba d035c86f90 Updated Rector to commit a7e66d67bd
a7e66d67bd remove excluded files
2022-05-30 00:02:22 +00:00
Tomas Votruba 5b72ec39c6 Updated Rector to commit db57fbaae4
db57fbaae4 Remove myclabs/php-enum dependency (#2388)
2022-05-29 22:41:07 +00:00
Tomas Votruba 9a9e8960ee Updated Rector to commit 9cd69c2b3d
9cd69c2b3d [automated] Re-Generate Nodes/Rectors Documentation (#2385)
2022-05-29 00:36:37 +00:00
Tomas Votruba 94e64470da Updated Rector to commit 012e9ad553
012e9ad553 Add annotation to attribute core rename in AnnotationToAttributeRector (#2384)
2022-05-28 00:27:30 +00:00
Tomas Votruba 7e46eb8267 Updated Rector to commit a2d6da8b4e
a2d6da8b4e Back to php-scoper 0.14 with scoping from php 8.0 (#2370)
2022-05-27 11:51:31 +00:00
Tomas Votruba beba7d6efe Updated Rector to commit 1249d947f4
1249d947f4 Try php-scoper 0.17 (#2368)
2022-05-27 11:25:02 +00:00
Tomas Votruba 911a9772d6 Updated Rector to commit e690cd059c
e690cd059c restore downgrade configs
2022-05-27 10:39:50 +00:00
Tomas Votruba 74a2d071eb Updated Rector to commit 3da22b0231
3da22b0231 [Php81] Skip ArrayDimFetch from ArrayObject in Assign var on ReadOnlyPropertyRector (#2363)
2022-05-26 07:20:40 +00:00
Tomas Votruba c5eecc40c0 Updated Rector to commit 4c53b206a4
4c53b206a4 [Php80] Do not remove array<mixed> inside Union type on UnionTypesRector (#2358)
2022-05-25 06:59:11 +00:00
Tomas Votruba de531d956c Updated Rector to commit e1ecbe90fc
e1ecbe90fc [DeadCode] Handle RemoveDoubleAssignRector+RemoveUnusedVariableAssignRector (#2355)
2022-05-24 21:07:21 +00:00
Tomas Votruba f3e173b7f3 Updated Rector to commit 8efa7151e6
8efa7151e6 [FamilyTree] Use parent->hasNativeMethod() on ClassChildAnalyzer->resolveParentClassMethods() (#2357)
2022-05-24 20:58:57 +00:00
Tomas Votruba 5dfc95ba95 Updated Rector to commit e1ecbe90fc
e1ecbe90fc [DeadCode] Handle RemoveDoubleAssignRector+RemoveUnusedVariableAssignRector (#2355)
2022-05-24 20:58:43 +00:00
Tomas Votruba 5d8ca84738 Updated Rector to commit f25715b7b3
f25715b7b3 [Php73] Skip Encapsed on StringifyStrNeedlesRector + Temporary Pin PHPStan 1.6.9 (#2352)
2022-05-24 08:37:28 +00:00
Tomas Votruba f89782b964 Updated Rector to commit f134b6183e
f134b6183e [Php71] Ensure return  only when catch of TryCatch removed on MultiExceptionCatchRector (#2350)
2022-05-23 03:50:09 +00:00
Tomas Votruba b7c661cd45 Updated Rector to commit a9c6d9bd06
a9c6d9bd06 [Core][DeadCode] Remove ClassMethodManipulator->isPropertyPromotion() (#2346)
2022-05-22 17:06:09 +00:00
Tomas Votruba 1192ab052e Updated Rector to commit 68906c7e17
68906c7e17 [DeadCode] Skip used in compact() on RemoveUnusedConstructorParamRector (#2345)
2022-05-22 11:48:33 +00:00
Tomas Votruba 2b85976c4c Updated Rector to commit adb6e68c2a
adb6e68c2a [automated] Re-Generate Nodes/Rectors Documentation (#2343)
2022-05-22 00:38:26 +00:00
Tomas Votruba ba3d4a2c17 Updated Rector to commit b4120a8850
b4120a8850 [DX] Use direct method on node, instead of token position (#2340)
2022-05-21 08:50:30 +00:00
Tomas Votruba 6fe802bfdc Updated Rector to commit fcadc67328
fcadc67328 add symfony php config option to allow loading route factory (#2339)
2022-05-21 08:48:33 +00:00
Tomas Votruba 6a5ebad0e7 Updated Rector to commit f0a1b688f3
f0a1b688f3 [DowngradePhp80] Apply PHPStan 1.7.x-dev compatible for PhpParameterReflection (#2336)
2022-05-20 10:24:40 +00:00
Tomas Votruba ce9b1cc6e6 Updated Rector to commit 30a53bfd93
30a53bfd93 [DowngradePhp80] Add in arrow function in return support on DowngradeMatchToSwitchRector (#2331)
2022-05-19 06:59:21 +00:00
Tomas Votruba f845008257 Updated Rector to commit 50943ea4f2
50943ea4f2 [CodeQuality] Skip re use variable in assign Expr on InlineArrayReturnAssignRector (#2325)
2022-05-18 01:37:38 +00:00
Tomas Votruba 9ec874fb89 Updated Rector to commit 15d93fa815
15d93fa815 [DeadCode] Handle combine RemoveAlwaysTrueIfConditionRector + RemoveDeadConstructorRector (#2324)
2022-05-17 09:51:50 +00:00
Tomas Votruba 4708d6b081 Updated Rector to commit c0086b7e14
c0086b7e14 [e2e] Add e2e for tests removed node display applied rules with return null (#2320)
2022-05-16 01:19:48 +00:00
Tomas Votruba ad10fd18db Updated Rector to commit 96400215b5
96400215b5 [automated] Re-Generate Nodes/Rectors Documentation (#2314)
2022-05-15 09:42:33 +00:00
Tomas Votruba f2550b0de1 Updated Rector to commit f92d5deca3
f92d5deca3 Fix Scalar_Encapsed node as dynamic in  (#2309)
2022-05-14 02:43:00 +00:00
Tomas Votruba b03aa95fcc Updated Rector to commit 28dc9cebb2
28dc9cebb2 Prepare NamedToUnnamedArgs for PhpParameterReflection change in PHPStan 1.7 (#2305)
2022-05-13 09:29:14 +00:00
Tomas Votruba 99edeb9629 Updated Rector to commit 52ea41240e
47bea33c2e use changelog annotations to display useful into under the change 52ea41240e restore regex replaces
2022-05-12 19:17:07 +00:00
Tomas Votruba bca89e29da Updated Rector to commit 33cd52e703
33cd52e703 Fix position of class after non-reachable stmts (#2299)
2022-05-12 09:11:03 +00:00
Tomas Votruba d967349fb9 Updated Rector to commit cd2a644e0c
cd2a644e0c [Core] Refactor RectifiedAnalyzer: early check against AbstractScopeAwareRector instead of Original node (#2295)
2022-05-12 05:20:59 +00:00
Tomas Votruba f0a799c4c1 Updated Rector to commit 17d200dfa6
17d200dfa6 [DX] Skip extra comment, add RectorConfig->rules() (#2290)
2022-05-11 16:53:20 +00:00
Tomas Votruba a93d572d86 Updated Rector to commit ebd4c3fee6
ebd4c3fee6 [Renaming] Skip renaming method call on RenameMethodRector when both old and new exists, which implements interface as config (#2276)
2022-05-11 00:39:05 +00:00
Tomas Votruba d72f56e566 Updated Rector to commit 30f2f91909
30f2f91909 [CodeQuality][DeadCode] Handle SimplifyUselessVariableRector+RemoveOverriddenValuesRector (#2277)
2022-05-10 12:38:09 +00:00
Tomas Votruba ec43ca03ec Updated Rector to commit 97a33aa694
97a33aa694 [Core] Remove is_string() check on glob loop data (#2267)
2022-05-09 06:43:28 +00:00
Tomas Votruba aa0465d388 Updated Rector to commit 975fdf113f
975fdf113f [DX] Add StmtsAwareInterface to catch node by type (#2269)
2022-05-08 20:57:50 +00:00
Tomas Votruba 992aade98a Updated Rector to commit d89c23267c
d89c23267c [automated] Re-Generate Nodes/Rectors Documentation (#2262)
2022-05-08 00:33:36 +00:00
Tomas Votruba f958d0a9c9 Updated Rector to commit fb8260c3a1
fb8260c3a1 [DeadCode] Ensure no stmts check on RemovePhpVersionIdCheckRector (#2260)
2022-05-07 18:51:48 +00:00
Tomas Votruba f63eef01d0 Updated Rector to commit 2dd8c6b814
2dd8c6b814 [CodeQuality][DeadCode] Add For_, Closure, and Finally_, Case_, Catch_ to NodeTypeGroup::STMTS_AWARE (#2258)
2022-05-07 18:33:57 +00:00
Tomas Votruba 0f7f24ba96 Updated Rector to commit 333933b2d3
333933b2d3 Change RemovePhpVersionIdCheckRector to work with direct If_ (#2259)
2022-05-07 18:21:39 +00:00
Tomas Votruba 4b5a7031be Updated Rector to commit 3135f29362
3135f29362 [DeadCode] Ensure has stmts on RemoveDeadInstanceOfRector (#2252)
2022-05-07 10:26:06 +00:00
Tomas Votruba fe23d4f8ca Updated Rector to commit c91f3ad629
c91f3ad629 refactor RemoveDeadInstanceOfRector to direct return (#2251)
2022-05-07 09:38:38 +00:00
Tomas Votruba 24318b9a19 Updated Rector to commit 26cad67b1c
26cad67b1c [CodingStyle] Clean up getParents() call on MakeInheritedMethodVisibilitySameAsParentRector (#2246)
2022-05-07 00:18:08 +00:00
Tomas Votruba a548c62cde Updated Rector to commit ede1106a69
ede1106a69 [DX] Improve DowngradeCatchThrowableRector to return nodes directly (#2241)
2022-05-06 07:17:49 +00:00
Tomas Votruba d59bf7cd51 Updated Rector to commit 561e3963e1
561e3963e1 Use refactorWithScope() in MakeInheritedMethodVisibilitySameAsParentRector (#2236)
2022-05-05 17:42:23 +00:00
Tomas Votruba 4b66436386 Updated Rector to commit d8c523625c
d8c523625c Various property + class context improvements (#2234)
2022-05-05 09:39:03 +00:00
Tomas Votruba a2cfc4196f Updated Rector to commit 0175838a0c
0175838a0c [DX] Cleanup ComplexNodeRemover (#2230)
2022-05-05 06:11:24 +00:00
Tomas Votruba 975a637463 Updated Rector to commit 2d16736414
2d16736414 [DX] Remove poorly designed NodeToReplacePostRector, return changed nodes directly in the current rule (#2229)
2022-05-04 22:24:14 +00:00
Tomas Votruba 476869ebf4 Updated Rector to commit 129ce269d3
129ce269d3 [Core] Use ReflectionResolver to get ClassReflection when possible (#2226)
2022-05-04 10:46:11 +00:00
Tomas Votruba 128aa6dc82 Updated Rector to commit 7209b23341
7209b23341 [Php73] Skip both reset and key assigned on ArrayKeyFirstLastRector (#2219)
2022-05-04 00:06:05 +00:00
Tomas Votruba 80c29bac02 Updated Rector to commit c4e1ee2b3e
c4e1ee2b3e Added new functions to NullToStrictStringFuncCallArgRector (#2217)
2022-05-03 12:09:48 +00:00
Tomas Votruba 9dacdb4abb Updated Rector to commit 464b74c40d
464b74c40d [Core] Merge BetterNodeFinder findFirstPreviousOfNode() with findFirstPrevious() (#2213)
2022-05-02 12:45:52 +00:00
Tomas Votruba d71e817365 Updated Rector to commit 992d1efc75
992d1efc75 [CodeQuality] Skip CallableThisArrayToAnonymousFunctionRector when inside of Attribute (#2212)
2022-05-02 09:44:00 +00:00
Tomas Votruba 4b7ca796b9 Updated Rector to commit 039181ac6c
039181ac6c [DeadCode] Remove RemoveCodeAfterReturnRector, already handled at RemoveUnreachableStatementRector (#2199)
2022-05-01 05:55:37 +00:00
Tomas Votruba 0263197624 Updated Rector to commit 3f1f632c04
3f1f632c04 [automated] Apply Coding Standard (#2204)
2022-05-01 00:51:36 +00:00
Tomas Votruba a36b608f99 Updated Rector to commit e782cccb55
e782cccb55 [CodingStyle] Clean up spl_object_hash() check on NewlineAfterStatementRector (#2203)
2022-04-30 06:40:36 +00:00
Tomas Votruba 2619fc49bc Updated Rector to commit b33f8a529d
b33f8a529d [DeadCode] Register array_splice into impure functions on PureFunctionDetector (#2194)
2022-04-29 06:51:26 +00:00
Tomas Votruba 0ab11406b4 Updated Rector to commit 4d7c087805
4d7c087805 [DeadCode] Improve RemoveUnreachableStatementRector performance by return after array_splice early (#2193)
2022-04-29 06:42:11 +00:00
Tomas Votruba 954555d0df Updated Rector to commit c411410fa5
c411410fa5 [Core] Move parent instanceof Node check on BetterNodeFinder::findParentType() inside do { } while condition (#2190)
2022-04-28 21:55:05 +00:00
Tomas Votruba 23db732224 Updated Rector to commit b4a1edfb88
b4a1edfb88 [DeadCode] Add empty and multi stmts support on RemoveAlwaysTrueIfConditionRector (#2192)
2022-04-28 21:50:14 +00:00
Tomas Votruba 19ffa21a89 Updated Rector to commit a218dda059
a218dda059 [DX] Move PhpVersionProvider from AbstractRector to particular services (#2189)
2022-04-28 20:11:07 +00:00
Tomas Votruba e6d9de7fba Updated Rector to commit 08bb10de6b
08bb10de6b [CodeQuality] Add InlineArrayReturnAssignRector (#2183)
2022-04-28 14:55:01 +00:00
Tomas Votruba 2e00657da7 Updated Rector to commit 4fea4e23b9
4fea4e23b9 [TypeDeclaration] Skip return type defined Closure on ReturnTypeDeclarationRector (#2179)
2022-04-27 13:37:37 +00:00
Tomas Votruba c7ca691738 Updated Rector to commit ba29e3fd5f
ba29e3fd5f Re-use name scope (#2171)
2022-04-26 13:03:56 +00:00
Tomas Votruba 5147929731 Updated Rector to commit 43aa4d91f7
43aa4d91f7 Add SameNamespacedTypeSpecifier (#2169)
2022-04-26 08:13:18 +00:00
Tomas Votruba c78996f799 Updated Rector to commit 2447c3155b
2447c3155b Cleanup (#2159)
2022-04-25 08:28:43 +00:00
Tomas Votruba f27b77df88 Updated Rector to commit 90dae505af
90dae505af Remove uses nodes attribute - part #1 (#2155)
2022-04-25 07:10:07 +00:00
Tomas Votruba 22a6a7d222 Updated Rector to commit dc7a9a85f3
dc7a9a85f3 [DeadCode] Skip remove variable on switch use return after break on RemoveUnusedVariableAssignRector (#2145)
2022-04-24 07:48:38 +00:00
Tomas Votruba ae847cdf27 Updated Rector to commit eb1090c934
eb1090c934 [DeadCode] Add Break_, Continue_, Goto_ support on RemoveUnreachableStatementRector (#2142)
2022-04-23 22:22:46 +00:00
Tomas Votruba 45aa9e4e71 Updated Rector to commit 469f0eed63
469f0eed63 [DeadCode] Register more Stmt Nodes on RemoveUnreachableStatementRector (#2140)
2022-04-23 19:00:01 +00:00
Tomas Votruba eb4cd2911f Updated Rector to commit 365b289eb7
365b289eb7 [DeadCode] Skip Try { finally } assign and loop stmts on RemoveUnreachableStatementRector (#2139)
2022-04-23 13:47:51 +00:00
Tomas Votruba 6f99610f8c Updated Rector to commit f80d476d66
f80d476d66 [DeadCode] Refactor RemoveUnreachableStatementRector to check previuos stmt against Throw_,Exit_,Return_,TryCatch_ (#2137)
2022-04-23 13:06:33 +00:00
Tomas Votruba 11667e7491 Updated Rector to commit 2f5a525e65
2f5a525e65 Revert adding RemoveNamespaceRector (#2133)
2022-04-23 10:11:50 +00:00
Tomas Votruba 2a14888af7 Updated Rector to commit e5c94a20cf
e5c94a20cf [DeadCode] Handle skipped RemoveUnreachableStatementRector on MultiDirnameRector (#2129)
2022-04-22 23:06:34 +00:00
Tomas Votruba 56baeb9471 Updated Rector to commit b192ec7ca8
b192ec7ca8 simplify RemoveDoubleAssignRector to use less connecting nodes (#2126)
2022-04-22 15:58:01 +00:00
Tomas Votruba 8cf0a1bf3a Updated Rector to commit 5cc41ac787
5cc41ac787 Simplify RemoveUnreachableStatementRector to use less connecting nodes (#2125)
2022-04-22 15:22:45 +00:00
Tomas Votruba af205b10a4 Updated Rector to commit 75fccc5d58
75fccc5d58 [Php71] Remove PropertyFetchAnalyzer::isFilledByConstructParam (#2122)
2022-04-22 00:49:25 +00:00
Tomas Votruba 90aca384f1 Updated Rector to commit aa345bc51d
aa345bc51d [Php74] Add class-string to string support on TypedPropertyRector (#2120)
2022-04-21 22:59:51 +00:00
Tomas Votruba 07e4ebd293 Updated Rector to commit a0c8a6be61
a0c8a6be61 add deprecations to Option constants and refer to RectorConfig (#2112)
2022-04-21 06:47:26 +00:00
Tomas Votruba 764369f38b Updated Rector to commit d90953d9a9
d90953d9a9 [DX] Add RectorConfig upgrade rule to make upgrade easier :) (#2098)
2022-04-20 07:06:09 +00:00
Tomas Votruba 2684ff98ab Updated Rector to commit 5025d255ca
5025d255ca [Core] Rollback ParameterProvider autowire into AbstractRector (#2095)
2022-04-19 08:10:27 +00:00
Tomas Votruba 2fb3b1c1d8 Rector 0.12.21 2022-04-18 12:12:41 +00:00
Tomas Votruba 5f10b8092d Updated Rector to commit 46d2c00038
46d2c00038 [automated] Re-Generate Nodes/Rectors Documentation (#2085)
2022-04-17 00:35:02 +00:00
Tomas Votruba cfa1942bf9 Updated Rector to commit 73bf29c279
73bf29c279 [TypeDeclaration] Remove NullType when already has mixed on ParamAnnotationIncorrectNullableRector (#2081)
2022-04-16 16:16:44 +00:00
Tomas Votruba 74a8a29f4c Updated Rector to commit 8be11db297
8be11db297 [Naming] Skip used by trait on RenamePropertyToMatchTypeRector (#2077)
2022-04-15 07:29:32 +00:00
Tomas Votruba 99d2e969d8 Updated Rector to commit 9d5ea4c3e6
9d5ea4c3e6 [CodeQuality][CodingStyle][DeadCode] Handle SimplifyIfElseToTernaryRector+InlineSimplePropertyAnnotationRector+RemoveUnusedVariableAssignRector (#2074)
2022-04-14 17:41:58 +00:00
Tomas Votruba 446b0a8f86 Updated Rector to commit c509923516
c509923516 [Feature] Add ParamAnnotationIncorrectNullableRector for fixing incorrect null type in @param (#2069)
2022-04-14 08:12:26 +00:00
Tomas Votruba 180b4b0a8f Updated Rector to commit 1c1732f017
1c1732f017 [Php74] Add support for string|false|null on RestoreDefaultNullToNullableTypePropertyRector (#2068)
2022-04-13 16:41:54 +00:00
Tomas Votruba e7029ad1f5 Updated Rector to commit 0ba8579821
0ba8579821 [Fix] Make UnionTypesRector and ReturnAnnotationIncorrectNullableRector skip chaotic methods (#2067)
2022-04-13 16:29:57 +00:00
Tomas Votruba 6c73983fe9 Updated Rector to commit a1ac1b6fdf
a1ac1b6fdf [Feature] Add ReturnAnnotationIncorrectNullableRector for fixing incorrect null type in @return (#2060)
2022-04-12 06:58:51 +00:00
Tomas Votruba 479b159635 Updated Rector to commit f12861bda0
f12861bda0 [Php74] Move multi rules used tests to tests/Issues for TypedPropertyRector (#2051)
2022-04-11 08:29:44 +00:00
Tomas Votruba c4650c159a Updated Rector to commit 76667332cf
76667332cf [automated] Re-Generate Nodes/Rectors Documentation (#2041)
2022-04-10 00:31:45 +00:00
Tomas Votruba 623e329a47 Updated Rector to commit 55575af7d6
55575af7d6 Move RemovedAndAddedFilesCollector, ParameterProvider from AbstractRector to rules that actually use it (#2038)
2022-04-09 23:52:05 +00:00
Tomas Votruba 3a2aaafb14 Updated Rector to commit 3407066315
3407066315 [DX] Replace global BetterStandardPrinter from AbstractRector with autowired NodePrinterInterface for easier and specific re-use (#2036)
2022-04-09 22:42:24 +00:00
Tomas Votruba 5787368189 Updated Rector to commit 22f776aa17
22f776aa17 [DeadCode] Skip not identifier name on RemoveUnusedPrivateMethodRector (#2034)
2022-04-09 13:47:45 +00:00
Tomas Votruba cd7d84363a Updated Rector to commit 5a2682e4a5
5a2682e4a5 [TypeDeclaration] Skip in trait on TypedPropertyFromAssignsRector (#2030)
2022-04-09 07:29:28 +00:00
Tomas Votruba 79c940ac59 Updated Rector to commit 4fb405ed3a
4fb405ed3a [DeadCode][Strict] Handle RemoveDeadInstanceOfRector+BooleanInTernaryOperatorRuleFixerRector+DisallowedEmptyRuleFixerRector (#2028)
2022-04-08 08:59:08 +00:00
Tomas Votruba 34dc036a62 Updated Rector to commit b12415b7b2
b12415b7b2 [TypeDeclaration] Skip default type value different with type assigned (#2027)
2022-04-08 08:52:55 +00:00
Tomas Votruba bc4242dccb Updated Rector to commit 8f9abbd8b7
8f9abbd8b7 Trigger notification (#2015)
2022-04-07 07:54:47 +00:00
Tomas Votruba 1c3a355583 Updated Rector to commit be530c5e2f
be530c5e2f [Removing] Add RemoveNamespaceRector (#2013)
2022-04-06 12:39:03 +00:00
Tomas Votruba 5f44698947 Updated Rector to commit 85ff4163b0
85ff4163b0 [TypeDeclaration] Handle default value on not inlined assignment in __construct on TypedPropertyFromStrictConstructorRector (#2008)
2022-04-05 08:03:44 +00:00
Tomas Votruba 7fde66200e Updated Rector to commit 258f2d031e
258f2d031e phpstan (#2006)
2022-04-04 05:57:16 +00:00
Tomas Votruba 7e7dc913ba Updated Rector to commit 02bb2edef3
02bb2edef3 [Scoper] Clean up scoper replace namespace stub (#2002)
2022-04-03 00:58:28 +00:00
Tomas Votruba c5a12d271e Updated Rector to commit 7a37df2b60
7a37df2b60 [DeadCode] Add Closure support on RemoveLastReturnRector (#1993)
2022-04-02 08:38:27 +00:00
Tomas Votruba 22e128cb20 Updated Rector to commit aedfc65a48
aedfc65a48 [DeadCode] Remove RemoveUnusedAssignVariableRector in favor of RemoveUnusedVariableAssignRector (#1988)
2022-04-01 07:19:38 +00:00
Tomas Votruba daae17bd4e Updated Rector to commit 12f027c8a1
12f027c8a1 [TypeDeclaration] Handle yield and return in inner function on AddVoidReturnTypeWhereNoReturnRector (#1986)
2022-04-01 05:37:00 +00:00
Tomas Votruba 963952f993 Updated Rector to commit eba904f406
eba904f406 [Php80] Skip empty default on ChangeSwitchToMatchRector (#1980)
2022-03-31 11:04:24 +00:00
Tomas Votruba 7ede09fb94 Updated Rector to commit a375ee2641
a375ee2641 [Core][EarlyReturn][Php73] Fix used along tweak between JsonThrowOnErrorRector + ChangeAndIfToEarlyReturnRector (#1979)
2022-03-30 06:32:05 +00:00
Tomas Votruba 6f12ae7d35 Updated Rector to commit b97ce487e6
b97ce487e6 [CodeQuality] Handle Param by reference in target method on CallableThisArrayToAnonymousFunctionRector (#1974)
2022-03-29 06:08:35 +00:00
Tomas Votruba 2d8fcc1394 Updated Rector to commit a20320d8ca
a20320d8ca [Php55] Move GetCalledClassToSelfClassRector + GetCalledClassToStaticClassRector from php 7.4 to 5.5 SetList (#1972)
2022-03-28 09:17:08 +00:00
Tomas Votruba 9ac9586ee2 Updated Rector to commit 6f61a09243
6f61a09243 [TypeDeclaration] Skip key has bracket {}[] on ArrayShapeFromConstantArrayReturnRector (#1968)
2022-03-27 11:19:47 +00:00
Tomas Votruba bb3ebe7fed Updated Rector to commit 900eca0ce5
900eca0ce5 [Doc] Fix composer docs generation ConfiguredCodeSample in RemoveUnusedPrivatePropertyRector (#1963)
2022-03-26 19:22:15 +00:00
Tomas Votruba ec76745f1f Updated Rector to commit 699e314ef3
699e314ef3 Fix stub PHPUnit\Framework\TestCase (#1960)
2022-03-25 13:08:27 +00:00
Tomas Votruba 0a72eb262e Updated Rector to commit 6ebf140ee5
6ebf140ee5 Remove psr/http-message dep on downgrade scoped (#1958)
2022-03-24 04:54:45 +00:00
Tomas Votruba 9728a66366 Updated Rector to commit cbefb243e2
cbefb243e2 [TypeDeclaration] Avoid adding param type in case of different default type (#1956)
2022-03-23 09:36:21 +00:00
Tomas Votruba 65f6a3f867 Updated Rector to commit 8f86f525f7
8f86f525f7 Fix stub PHPUnit\Framework\TestCase (#1954)
2022-03-22 14:39:27 +00:00
Tomas Votruba a5de7de1ba Updated Rector to commit d5c5fe3a97
d5c5fe3a97 [Php80] Handle return match no default on ChangeSwitchToMatchRector (#1949)
2022-03-21 07:38:33 +00:00
Tomas Votruba 247cb9fc8b Updated Rector to commit f82fa3182c
f82fa3182c [DeadCode] Make RemoveUnusedPrivatePropertyRector configurable to allow skip remove assign with side effect (#1948)
2022-03-20 19:48:16 +00:00
Tomas Votruba 3de728ec5c Updated Rector to commit 2d3419bc94
2d3419bc94 [Arguments] Handle by pass 2nd argument default value on ArgumentAdderRector (#1946)
2022-03-18 13:14:22 +00:00
Tomas Votruba 0c232fa881 Updated Rector to commit feae0cfa0c
feae0cfa0c [DeadCode][CodingStyle] Handle SplitDoubleAssignRector+RemoveUnusedPrivatePropertyRector (#1944)
2022-03-17 07:36:14 +00:00
Tomas Votruba 9d2d61cbdd Updated Rector to commit f7e1035828
f7e1035828 [Php81] Skip static property on ReadOnlyPropertyRector (#1939)
2022-03-16 09:24:07 +00:00
Tomas Votruba 5d87d5c6e4 Updated Rector to commit 906f038f42
906f038f42 [DeadCode] Skip has Inline HTML on RemoveUnreachableStatementRector (#1937)
2022-03-15 23:00:47 +00:00
Tomas Votruba 16633831b8 Updated Rector to commit b83523354f
b83523354f [DeadCode] Skip called by current classname on RemoveUnusedPrivateClassConstantRector (#1931)
2022-03-15 09:06:38 +00:00
Tomas Votruba 64de0ed996 Updated Rector to commit 90bb8b9868
90bb8b9868 Enable vendor patching (#1929)
2022-03-14 09:10:58 +00:00
Tomas Votruba 8f8963b6ba Updated Rector to commit 81c2492118
81c2492118 [automated] Re-Generate Nodes/Rectors Documentation (#1925)
2022-03-13 00:30:25 +00:00