210 Commits

Author SHA1 Message Date
Tomas Votruba
4d052b08f9 Updated Rector to commit 6cdfebe40c879a70173ff34e147553cf285db883
6cdfebe40c [Windows] Add platform agnostic asserts (#461)
2021-08-16 07:19:49 +00:00
Tomas Votruba
e7dc6c9020 Updated Rector to commit 8240d3182aac5ded76ebd2a300164bdf7cb60174
8240d3182a [DeadCode] Skip Empty Class Method for __construct with eclass extends, and class with __invoke (#687)
2021-08-15 17:30:07 +00:00
Tomas Votruba
dc5c5507e9 Updated Rector to commit e9d11727179a04a8614b4c6370b22fa6d4c98da9
e9d1172717 [automated] Re-Generate Nodes/Rectors Documentation (#683)
2021-08-15 00:30:09 +00:00
Tomas Votruba
8237134f2e Updated Rector to commit 85e02fd6d01732fa86c6c3f2b34c544be225d947
85e02fd6d0 [DeadCode] Allow not has side effect duplicate assign on RemoveDoubleAssignRector (#679)
2021-08-14 22:37:45 +00:00
Tomas Votruba
9b371536e4 Updated Rector to commit 9dd6d63e140f1c8e1561b113aac12810f412628a
9dd6d63e14 [Defluent] Skip on return and on cast for InArgFluentChainMethodCallToStandaloneMethodCallRector (#680)
2021-08-14 22:35:40 +00:00
Tomas Votruba
17c50e80ed Updated Rector to commit 13d73b380d5adedbccbe37afb0aff2e2319a7e27
13d73b380d [DeadCode] Handle typed and non-typed param on RecastingRemovalRector (#675)
2021-08-14 13:12:49 +00:00
Tomas Votruba
f353893d6d Updated Rector to commit bf038c60bdbccbac2582ac826466fb745249246a
bf038c60bd [Defluent] Fix test namespace for InArgFluentChainMethodCallToStandaloneMethodCallRector (#676)
2021-08-14 11:18:07 +00:00
Tomas Votruba
09d23c12db Updated Rector to commit 6ff9e780b9a0d6170f5fd8d9c739419b5d8fc63e
6ff9e780b9 [Defluent] Skip Fluent in If_ cond on FluentChainMethodCallToNormalMethodCallRector (#673)
2021-08-13 20:58:51 +00:00
Tomas Votruba
b998a4feca Updated Rector to commit 31f88491b8b85cdba2f33ed5ff9440a77713e5c2
31f88491b8 [Defluent] Skip NewFluentChainMethodCallToNonFluentRector on inside If_ cond (#671)
2021-08-13 20:46:17 +00:00
Tomas Votruba
708bb6c44b Updated Rector to commit 6ff9e780b9a0d6170f5fd8d9c739419b5d8fc63e
6ff9e780b9 [Defluent] Skip Fluent in If_ cond on FluentChainMethodCallToNormalMethodCallRector (#673)
2021-08-13 20:45:41 +00:00
Tomas Votruba
d1fc5bf0a7 Updated Rector to commit 2f6725acd411aca2b05e98d3bf8d8055d12312ac
2f6725acd4 [EarlyReturn] Handle Repetitive If_ on use ReturnBinaryAndToEarlyReturnRector (#669)
2021-08-13 20:44:01 +00:00
Tomas Votruba
aeb2451688 Updated Rector to commit c115811102cfb2e88b80258e3d18c51a19e9ba44
c115811102 [DeadCode] Skip Union Array without type on RemoveDeadInstanceOfRector (#672)
2021-08-13 20:43:09 +00:00
Tomas Votruba
55cb627074 Updated Rector to commit 7b8f4deae245e3921afdaf2f7bf4a1927da311b4
7b8f4deae2 [CodeQuality] Skip FixClassCaseSensitivityNameRector on function name exists (#660)
2021-08-13 11:57:49 +00:00
Tomas Votruba
93cc8dacbc Updated Rector to commit 906bb39c8df09c9a7c554dd97a2fde070b076861
906bb39c8d [EarlyReturn] Handle Repetitive create If_ statement on use ChangeOrIfReturnToEarlyReturnRector+RemoveAlwaysElseRector (#651)
2021-08-12 09:54:28 +00:00
Tomas Votruba
9d7620e51f Updated Rector to commit 9e17cfe28e734bc93379530c87d177da566a87b5
9e17cfe28e [DeadCode] Skip RemoveEmptyMethodCallRector on call from current  that can be overridden by child (#644)
2021-08-11 12:48:37 +00:00
Tomas Votruba
a75504cb47 Updated Rector to commit 3a76077bfe5ba553bf59f7ea269b7d594f715ecb
3a76077bfe [Defluent] Handle casted return value on FluentChainMethodCallToNormalMethodCallRector (#643)
2021-08-11 06:38:05 +00:00
Tomas Votruba
3395b050ee Updated Rector to commit 028dcb15e4ce3af9a1651b25a9d945ba962907f1
028dcb15e4 [CodingStyle] Skip RemoveUnusedAliasRector on alias used as namespace (#634)
2021-08-10 07:12:30 +00:00
Tomas Votruba
bd98852bcd Updated Rector to commit db637973d0b5be0817eb28be4d191920a572d4a2
db637973d0 [DeadCode] Do not remove assign on RemoveUnusedVariableAssignRector on New_ usage (#625)
2021-08-09 07:40:23 +00:00
Tomas Votruba
eb3537a9a5 Updated Rector to commit 9f7a8d8c21b56593823ccfea30ff1c93c542fced
9f7a8d8c21 [EarlyReturn] Handle both ChangeAndIfToEarlyReturnRector and ChangeOrIfReturnToEarlyReturnRector (#617)
2021-08-08 17:11:36 +00:00
Tomas Votruba
4bcc040852 Updated Rector to commit 459bc85fdfffc52372df67ad50dc42d6c78fb484
459bc85fdf [Scoped] Wait 3 minutes before checkout rectorphp/rector-src on create a tag (#620)
2021-08-08 17:06:57 +00:00
Tomas Votruba
347502ca61 Updated Rector to commit 013042b2e1a43ca4fa0902a6ae2d0c4600d00ccf
013042b2e1 [DeadCode] Skip modified value property on RemoveDuplicatedIfReturnRector (#621)
2021-08-08 17:06:38 +00:00
Tomas Votruba
e9e85a1300 Updated Rector to commit a8b01f217b9702f7dd6e485f84fe46a6dabe0d86
a8b01f217b [automated] Re-Generate Nodes/Rectors Documentation (#619)
2021-08-08 00:26:40 +00:00
Tomas Votruba
f674f1dd71 Updated Rector to commit 72df0f63c5015db2db86bf1b17a0d8393ad90911
72df0f63c5 [DeadCode] Mirror comment on RemoveUnusedNonEmptyArrayBeforeForeachRector (#610)
2021-08-07 12:06:20 +00:00
Tomas Votruba
0dad1bbb20 Updated Rector to commit b64b1b26e0ed01f77e5afe5b018091990e31624a
b64b1b26e0 [DeadCode] Skip RemoveUnreachableStatementRector on use of ->markTestIncomplete() (#612)
2021-08-07 11:43:52 +00:00
Tomas Votruba
c61ef9179c Updated Rector to commit 72df0f63c5015db2db86bf1b17a0d8393ad90911
72df0f63c5 [DeadCode] Mirror comment on RemoveUnusedNonEmptyArrayBeforeForeachRector (#610)
2021-08-07 11:42:34 +00:00
Tomas Votruba
fb1a342d17 Updated Rector to commit 7e0859efe177331b53a327b60f5d6c48d7087bee
7e0859efe1 [DeadCode] Skip non-typed property for RecastingRemovalRector (#608)
2021-08-07 11:36:26 +00:00
Tomas Votruba
b5290c94c5 Updated Rector to commit 2d22795af1549dfbe40e3b8cf1c71cf88af7d3b1
2d22795af1 [DeadCode] Skip RemoveDeadConstructorRector on empty constructor with class extends (#611)
2021-08-07 11:33:39 +00:00
Tomas Votruba
ed866c99db Updated Rector to commit 7398a6637c49cd6f329d27a37f5006a69c219924
7398a6637c Add failing test fixture for RemoveUnusedPrivateMethodRector (#604)
2021-08-06 06:45:08 +00:00
Tomas Votruba
2ece2f3537 Updated Rector to commit 7c937fa45102ed0ece7194b1d64da787de199a7d
7c937fa451 [DeadCode] Skip do { } while() on RemoveUnreachableStatementRector (#601)
2021-08-05 17:17:00 +00:00
Tomas Votruba
d2c1af4455 Updated Rector to commit 738cea7736f865c1d660c1f168fc6e35639466a2
738cea7736 [DeadCode] Skip array_map in class extends Exception on RemoveUnusedPrivateMethodRector (#598)
2021-08-05 12:41:19 +00:00
Tomas Votruba
fa67d66a44 Updated Rector to commit 3eb503653fc1240a10c8be730f1ecfd45c47396c
3eb503653f [BetterStandardPrinter] Using Expr_ArrowFunction->returnType with print return type double colon right after the bracket (#596)
2021-08-05 05:49:38 +00:00
Tomas Votruba
4be28bf7eb Updated Rector to commit 37b06023b666cac8ec2997e8e1605f93c25d3b6f
37b06023b6 [DeadCode] Fix removal of variable-used promoted property (#593)
2021-08-04 13:47:30 +00:00
Tomas Votruba
fcfef6acab Updated Rector to commit 529eb40360f0a40a03bdaeb0e657fbaaec2a1c02
529eb40360 [DowngradePhp80] Handle both DowngradeTypedPropertyRector and DowngradeMixedTypeDeclarationRector Name parameter (#591)
2021-08-04 07:34:48 +00:00
Tomas Votruba
46cf4c1774 Updated Rector to commit 0888a92985f8018f486798af0f33928f221e7f0f
0888a92985 [CodeQuality] Skip class with constructor parameter for ClassConstFetch on CallableThisArraToAnonymousFunctionRector (#581)
2021-08-03 10:22:54 +00:00
Tomas Votruba
1452c5d9ff Updated Rector to commit b3480900f3da86846dfabdfcd7e12f07b16a3f78
b3480900f3 [CodingStyle] Remove YieldClassMethodToArrayClassMethodRector, rather PHPStorm job (#576)
2021-08-02 17:48:07 +00:00
Tomas Votruba
0f5395c1ad Updated Rector to commit 5145487e37a5ed2b83296caf534a1fb9f10e6f69
5145487e37 recursion is not needed, as Rector now works till there is something to change
2021-08-02 16:02:48 +00:00
Tomas Votruba
fb7f804b70 Updated Rector to commit 00fb10f8a50491ab39eabf924d3da805860fb1a2
8c4c7d0ae7 recursion is not needed, as Rector now works till there is something to change 00fb10f8a5 fix cs
2021-08-02 16:02:25 +00:00
Tomas Votruba
bfa1433bd5 Updated Rector to commit 2c71aa697612bf1e90a7be545f31c338278b0579
2c71aa6976 [VersionBonding] Update rector warning message for min PHP version project (#572)
2021-08-02 09:39:41 +00:00
Tomas Votruba
b0f145ae07 Updated Rector to commit 205e7a5bd026cdbbeac19bc51e63e429ee2df704
205e7a5bd0 [Core] Move isPropertyFetch() to PropertyFetchAnalyzer (#563)
2021-08-01 16:59:22 +00:00
Tomas Votruba
d0e5aaee2f Updated Rector to commit 645b7a8e8ff13fd4bbefaee6a874d49c744e8b29
645b7a8e8f [automated] Re-Generate Nodes/Rectors Documentation (#562)
2021-08-01 00:25:55 +00:00
Tomas Votruba
bee6271c0a Updated Rector to commit 59d63d6f4a486d574b17f68e406fa72125c8eb7d
59d63d6f4a [TypeDeclaration] Allow ArrowFunction on ReturnTypeFromStrictTypedCallRector (#556)
2021-07-31 11:40:13 +00:00
Tomas Votruba
c22db4f812 Updated Rector to commit e3321d9df372fab011a9917f398e41aa72d0cfe3
e3321d9df3 [DeadCode] Using SideEffectNodeDetector::detectCallExpr() on RemoveUnusedVariableAssignRector (#553)
2021-07-31 11:35:23 +00:00
Tomas Votruba
c3bc0fc47d Updated Rector to commit d9f47f85729740fe2108d8b0e92e9c97403b6849
d9f47f8572 [DeadCode] Using SideEffectNodeDetector::detectCallExpr() on RemoveOverriddenValuesRector (#554)
2021-07-31 11:34:50 +00:00
Tomas Votruba
406cb3c9f8 Updated Rector to commit a152283fd7c858f74110d9d220e322bc0e256a67
a152283fd7 cleanup (#547)
2021-07-30 07:40:46 +00:00
Tomas Votruba
ff5108a964 Updated Rector to commit cdad000d81c83a9f828281ff85fa67f0adfeee24
cdad000d81 [DowngradePhp80] Register DowngradeThrowExprRector to downgrade-php80 config set (#538)
2021-07-29 00:44:05 +00:00
Tomas Votruba
f8f5156f46 Updated Rector to commit 32ef12c2635d6c109d4b963ba4ea08e49d2b01c0
32ef12c263 [DeadCode] Skip native variable on RemoveOverriddenValuesRector (#536)
2021-07-28 16:46:00 +00:00
Tomas Votruba
398f8f8197 Updated Rector to commit c93b40240fc04526047b3390920d862d7aa4c4b8
c93b40240f [DeadCode] Skip InstanceOf class not a Name on RemoveDeadInstanceOfRector (#531)
2021-07-28 11:14:29 +00:00
Tomas Votruba
74c3f7c261 Updated Rector to commit f44e09e077b78216cd721f2bdf83a4e063450b83
f44e09e077 [DeadCode][Defluent][NodeNameResolver] Using CallAnalyzer to check object call when possible (#529)
2021-07-28 11:11:32 +00:00
Tomas Votruba
6c3196a2e7 Updated Rector to commit 8299b2db4185d08c9a965661fe25a7c6b89fc7f7
8299b2db41 [DeadCode] Skip direct method call / function call on RemoveDeadInstanceOfRector (#527)
2021-07-28 07:07:05 +00:00
Tomas Votruba
b8d4e57170 Updated Rector to commit a7f111e201b95271acfdd090d017e3d112c5d1dd
a7f111e201 [PHPStan] Clean up PHPStan ignore error messages (#530)
2021-07-28 04:37:30 +00:00