12688 Commits

Author SHA1 Message Date
Tomas Votruba
65ad60c6e9 Updated Rector to commit 2623e6773c8e2f6dccb963caa794e23f56d0b3a3
2623e6773c Bump branch-alias from 0.10 to 0.11 (#723)
2021-08-20 10:06:28 +00:00
Tomas Votruba
c2ba6fd68e Updated Rector to commit d635cd54052cacd59f14ff78259db4434ed40639
d635cd5405 [Core] Avoid removal of contents when error found (#716)
2021-08-19 14:42:04 +00:00
Tomas Votruba
9894a33704 Updated Rector to commit 2fd5a8eec09aecf2dbb606c474ff6c6626720ccd
2fd5a8eec0 [Transform] Handle Multi Assign on NewToConstructorInjectionRector (#714)
2021-08-19 07:52:33 +00:00
Tomas Votruba
b9cd894841 Updated Rector to commit da038480cd5c44465dc6b6b3efc116b2baa03e24
da038480cd [DeadCode] Skip @return  removal on Trait_ on RemoveUselessReturnTagRector (#715)
2021-08-19 06:27:27 +00:00
Tomas Votruba
1b892235ad Updated Rector to commit 276df2530507662f598f534c53685c19e5abd017
276df25305 [NodeTypeResolver] Clean up PHPStanNodeScopeResolver (#713)
2021-08-19 04:19:05 +00:00
Tomas Votruba
c81e0916bc Updated Rector to commit 9f311dca009b4bd6ef7fbc3e57500197db41e50a
9f311dca00 Add failing test fixture for RemoveParentCallWithoutParentRector (#711)
2021-08-19 04:03:26 +00:00
Tomas Votruba
3ed3bb1e80 Updated Rector to commit 7095dcae16bca52b88da8354d58365dd5409ff7b
7095dcae16 [CodeQuality][TypeDeclaration] Handle ExplicitBoolCompareRector + ReturnTypeDeclarationRector on auto import return (#710)
2021-08-18 09:43:13 +00:00
Tomas Votruba
717efa01b2 Updated Rector to commit 25f719367f03712f5b46c7f5357cd55ee70c3837
25f719367f [CodeQuality] Handle possibly has '0' value on string on ExplicitBoolCompareRector (#709)
2021-08-18 09:28:16 +00:00
Tomas Votruba
dd5ada968f Updated Rector to commit 582d1d385179c553375b679035602f9a84cebef7
582d1d3851 [Exclusion] Check Parent attribute is Node on ExclusionManager::isNodeSkippedByRector() (#712)
2021-08-18 09:22:43 +00:00
Tomas Votruba
1e50587bb5 Updated Rector to commit c3c1411d107534e9d5c103982c9e5442213cc800
c3c1411d10 [DeadCode] Skip RemoveDeadStmtRector on class implements ArrayAccess (#707)
2021-08-17 10:45:55 +00:00
Tomas Votruba
f5c5a1e3ed Updated Rector to commit abc6d55fe287356fc22f310184763f2a2efd8812
abc6d55fe2 [DeadCode] Skip RemoveParentCallWithoutParentRector on inside assign (#706)
2021-08-17 10:00:08 +00:00
Tomas Votruba
d3b80f641b Rector 0.11.48 0.11.48 2021-08-17 09:00:25 +00:00
Tomas Votruba
6cc72206c0 Updated Rector to commit 6ffa3f439e7792522862d0cf77381f594436c422
6ffa3f439e [NodeTypeResolver] Using ClassReflection->getMixinTags() to detect source has mixin tags (#705)
2021-08-17 08:43:53 +00:00
Tomas Votruba
898f0a5dac Updated Rector to commit c1b7a97ee115899e8805178e5f3c2ef8729b251f
c1b7a97ee1 [CodeQuality] Skip Child class of \DateTime on DateTimeToDateTimeInterfaceRector (#703)
2021-08-17 07:07:19 +00:00
Tomas Votruba
7188bf1a2b Updated Rector to commit 91ac830d085968bcd5faef806aabb663e50e1ff8
91ac830d08 [PHPStan] Clean up PHPStan ignore error messages (#702)
2021-08-16 19:21:36 +00:00
Tomas Votruba
8fac26e567 Updated Rector to commit 8885ceadc7858cc671d372280793e0295b5e327a
8885ceadc7 [Defluent] Ensure parent is a node on NewFluentChainMethodCallToNonFluentRector before check ->typeChecker->isInstanceOf() (#701)
2021-08-16 19:07:25 +00:00
Tomas Votruba
56620f1008 Updated Rector to commit 9a5ca72b458822293a415a13efdccfe4748f34a0
9a5ca72b45 [NodeTypeResolver] Check current file name is not equal with source file name for mixin class in source (#700)
2021-08-16 18:30:22 +00:00
Tomas Votruba
286eddc010 Updated Rector to commit 4ecac1e2e4d6400303d7ec8983c5d8b7904627a1
4ecac1e2e4 [CodingStyle] Use json_encode for json encode if the class 'Nette\Utils\Json' not found (#699)
2021-08-16 15:44:56 +00:00
Tomas Votruba
d89770bafb Updated Rector to commit 085ba861bc3b2f31621a47b98596bd346181c2eb
085ba861bc improve exclusion manager (#698)
2021-08-16 11:11:57 +00:00
Tomas Votruba
d3c644f12f Updated Rector to commit 7e15ae1451a4c192f799d9e8738a2b1480a79d0a
7e15ae1451 Upgrade PHPStan rules and fix new reports (#697)
2021-08-16 10:56:18 +00:00
Tomas Votruba
b72cb79d09 Updated Rector to commit 4da0d5f1c1f9a52653dd2732cde88b03a0fc085b
4da0d5f1c1 [Php80] Handle Remove Doc Array Typed UnionTypesRector (#695)
2021-08-16 09:13:20 +00:00
Tomas Votruba
57f0875361 Updated Rector to commit 2dbf877472a3a98cdf4febe1abcd2c96b3bdd2c6
2dbf877472 [DeadCode] Skip RemoveUselessReturnTagRector on BracketsAwareUnionTypeNode (#694)
2021-08-16 08:58:15 +00:00
Tomas Votruba
421d235b5a Updated Rector to commit 401f6b8484887942dc4210947bce686590170747
401f6b8484 [Scoper] Fix PHPUnit scoper IsEqual (#693)
2021-08-16 08:37:07 +00:00
Tomas Votruba
3f7038bcd3 Updated Rector to commit 0d9a066ecbd8172df86c26a8a9ba03d0770fc3de
0d9a066ecb [DeadCode] Skip RemoveUselessParamTagRector on BracketsAwareUnionTypeNode (#691)
2021-08-16 08:22:42 +00:00
Tomas Votruba
8595649067 Updated Rector to commit 05f3fabe62f291fcf6250fad8e6b203a3d48b70c
05f3fabe62 [Defluent] Skip mixin in source on FluentChainMethodCallToNormalMethodCallRector (#689)
2021-08-16 08:19:28 +00:00
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
fd91160c36 Updated Rector to commit cdf9dc5c687f543e9b18b5e90805bc50656f6ed3
cdf9dc5c68 [Defluent] Skip mixin on FluentChainMethodCallToNormalMethodCallRector (#688)
2021-08-15 21:29:57 +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
fa1256e6c0 Updated Rector to commit 5f28681b9fc572394e690426f07f62fb5b812c47
5f28681b9f [DeadCode] Skip UnwrapFutureCompatibleIfPhpVersionRector on higher than current php provider (#685)
2021-08-15 13:59:52 +00:00
Tomas Votruba
20389a97da Updated Rector to commit 9a7ce1bdf254866e7cc0e6262011e3a1a1201e26
9a7ce1bdf2 [automated] Apply Coding Standard (#684)
2021-08-15 00:32:03 +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
3626e37580 Updated Rector to commit a4ecfaff521019bdbf10be992772e956ec9ae3ba
a4ecfaff52 [DeadCode] Using SideEffectNodeDetector on RemoveUnusedVariableAssignRector (#681)
2021-08-14 22:36:26 +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
fb290ae9af Updated Rector to commit edc280c9f15da2e54868c153f5a108d3552bc2e1
edc280c9f1 Fix for NullsafeOperatorRector crashing on returning null if both returns are null (#682)
2021-08-14 22:33:29 +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
2ddd79edde Updated Rector to commit ab02ce4b58d1d83437aae557d8ee616ac0bbe936
ab02ce4b58 [Defluent] Skip FluentChainMethodCallToNormalMethodCallRector inside ternary else (#674)
2021-08-14 13:04:02 +00:00
Tomas Votruba
b5c51f8e75 Updated Rector to commit da130380686e56898a90403ff6934d0c889417ea
da13038068 add ternary support for NullsafeOperatorRector (#678)
2021-08-14 12:37:18 +00:00
Tomas Votruba
5916663bf3 Updated Rector to commit f3298734224413d9781f2f6f292e23f21db5f232
f329873422 [Defluent] Skip New_ with not a Name on InArgFluentChainMethodCallToStandaloneMethodCallRector (#677)
2021-08-14 12:21:24 +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
fd9090a133 Updated Rector to commit cc89395feeb3ed2a85b186a93722f9dd27e06ec1
cc89395fee [EarlyReturn] Handle Repetitive If_ on use ReturnBinaryOrToEarlyReturnRector (#670)
2021-08-13 20:42:45 +00:00
Tomas Votruba
080ee3ab60 Updated Rector to commit b53d44daeee982fd1d7a0711b86258e3d6ef70fe
b53d44daee [CodeQuality] Skip Closure call on CompleteDynamicPropertiesRector (#668)
2021-08-13 20:42:40 +00:00
Tomas Votruba
7ea1d2d574 Updated Rector to commit ceef3b3468aee7b96ac1d46f6f43e602e5f8b789
ceef3b3468 [Php80] Handle Default value in Else_ not null on NullsafeOperatorRector (#667)
2021-08-13 14:22:51 +00:00
Tomas Votruba
12a282027a Updated Rector to commit e6100c9d542f3e83da64734ab5c565c915dee660
e6100c9d54 [DeadCode] Skip RemoveUselessReturnTagRector on typed closure (#662)
2021-08-13 12:04:16 +00:00
Tomas Votruba
a7f6c29b52 Updated Rector to commit 5e16b6bab731d037893d7a24d4b5896dd405d152
5e16b6bab7 [CodeQuality] Handle IssetOnPropertyObjectToPropertyExistsRector on built in class (#659)
2021-08-13 11:59:25 +00:00