2699 Commits

Author SHA1 Message Date
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
c512faabc2 Updated Rector to commit 00015a4390ff1ee82930374b286d1053569d9580
00015a4390 [DowngradePhp70] Handle increment variable assign on existing variable on DowngradeSpaceshipRector (#565)
2021-08-01 16:58:54 +00:00
Tomas Votruba
139baa203b Updated Rector to commit 5ad522ddaa3cecb343da84fd2184ef6ed24f1e60
5ad522ddaa [DowngradePhp80] Handle coalesce and truthy ternary directly without assign (#567)
2021-08-01 16:58:17 +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
f42d721e86 Updated Rector to commit 1b113a0c934b71ffd15d6e4593ef2db215ec9728
1b113a0c93 [Php70] Skip class has __callStatic() on StaticCallOnNonStaticToInstanceCallRector (#555)
2021-07-31 11:52:34 +00:00
Tomas Votruba
435990d383 Updated Rector to commit 057c5e6853931201e88a5ae19e9a7ca5541bb8ad
057c5e6853 Fix AnonymousFunctionFactory for class constant reference (#552)
2021-07-31 11:43:58 +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
f7dcf79c1e Updated Rector to commit 325c6be3ae5e782fef6359c40cdde58fdd0eb24b
325c6be3ae [TypeDeclaration] Add ParamTypeByMethodCallTypeRector (#544)
2021-07-30 10:40:03 +00:00
Tomas Votruba
7b8909a8bc Updated Rector to commit 62cca3bfeb92f455bc9f20b994fcc4d6e2b190f1
62cca3bfeb [CodingStyle] Fix ArrayCallableToMethodCallFactory for non-object types (#548)
2021-07-30 07:56:13 +00:00
Tomas Votruba
406cb3c9f8 Updated Rector to commit a152283fd7c858f74110d9d220e322bc0e256a67
a152283fd7 cleanup (#547)
2021-07-30 07:40:46 +00:00
Tomas Votruba
b777b6eb45 Updated Rector to commit eb7d73b432478f48f5e10248f7c20b981734a382
eb7d73b432 [DeadCode][CodeQualityStrict] Add SideEffectNodeDetector::detectCallExpr() (#543)
2021-07-29 17:27:50 +00:00
Tomas Votruba
74fd096ad7 Updated Rector to commit 46a6ab042e2e522c3c2b4b11aa09414df374387b
46a6ab042e [PHP 8.0] Fix strinable interface detection (#542)
2021-07-29 16:36:00 +00:00
Tomas Votruba
e5958f326a Updated Rector to commit 4be1f2aee76f877575465e4234054e60db24944a
4be1f2aee7 [DowngradePhp80] Allow Truthy with Ternary on DowngradeThrowExprRector (#539)
2021-07-29 10:07:41 +00:00
Tomas Votruba
d162a45f40 Updated Rector to commit 6e73a1f069afe9609437b2d4848ab323f03d0d20
6e73a1f069 [DowngradePhp70] Allow property fetch and static property fetch on DowngradeNullCoalesceRector (#540)
2021-07-29 07:26:45 +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
8b8c4dc016 Updated Rector to commit 3cf3e1fc2559b5c1bd53b107aed3ed9f645edf09
3cf3e1fc25 [TypeDeclaration] Add ParamTypeByParentCallTypeRector (#519)
2021-07-28 19:43:49 +00:00
Tomas Votruba
8e55ca0a2c Updated Rector to commit a467f764ec34703a3dab0bd861775f16656b8ac8
a467f764ec [DowngradePhp80] Add DowngradeThrowExprRector (#533)
2021-07-28 16:54:48 +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
f41cfb1de8 Updated Rector to commit b4392749f4ab12077b8cadc6cc8745ad79dcdea8
b4392749f4 Fix some code samples (#535)
2021-07-28 12:55:48 +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
6f760e17cc Updated Rector to commit 5d8789025dc14a3956b83bd934bbb78bf9e648ed
5d8789025d Fix NullsafeOperatorRector (#532)
2021-07-28 10:00:12 +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
5ab3cd8ae8 Updated Rector to commit 9b663a882135b663a6cf631f307382c823aa2fc5
9b663a8821 [DeadCode] Refactor PureFunctionDetector: ensure NativeFunctionReflection for pure function check (#528)
2021-07-28 07:06:07 +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
Tomas Votruba
bb9a43a22d Updated Rector to commit 65eaecb4deb1d60e2a5ae99e2ed530ac7f6fe9ac
65eaecb4de [DeadCode] Skip Static Call fluent on RemoveEmptyMethodCallRector (#526)
2021-07-27 14:23:09 +00:00
Tomas Votruba
5394ed5dd5 Updated Rector to commit 4b5ac4d548d2dc782157acb50b3a352d81ca9238
4b5ac4d548 [DeadCode] Skip Assign to PropertyFetch on RemoveAssignOfVoidReturnFunctionRector (#523)
2021-07-27 14:21:12 +00:00
Tomas Votruba
9b938c3aa8 Updated Rector to commit a8fd8a33153a8c4e651640266fa3e8c2dfc9b965
a8fd8a3315 [DeadCode] Handle RemoveDeadInstanceOfRector on non typed property (#524)
2021-07-27 14:20:41 +00:00
Tomas Votruba
a23b777a9a Updated Rector to commit 3a96b9097d6fbc29085210f2d85dd5d95755ef31
3a96b9097d [DeadCode] Skip fluent return  on RemoveEmptyMethodCallRector (#521)
2021-07-27 11:16:44 +00:00
Tomas Votruba
9d2869edb7 Updated Rector to commit e5d95bda102dc870e822f2ba7b97f95ec54e62c1
e5d95bda10 [TypeDeclaration] Handle Recursive multiple class string array on CompleteVarDocTypePropertyRector (#520)
2021-07-26 23:57:06 +00:00
Tomas Votruba
211eb8ce3c Updated Rector to commit 834ea497963dbc20a452b0ebabab141ac8ef6681
834ea49796 [TypeDeclaration] Skip multiple class-string[] array on CompleteVarDocTypePropertyRector (#518)
2021-07-26 16:43:00 +00:00
Tomas Votruba
97c6e16a85 Updated Rector to commit b47f2c980dac6f39c680c393489c843c3d6a5498
b47f2c980d [TypeDeclaration] Keep simple class on auto import for CompleteVarDocTypePropertyRector (#513)
2021-07-26 13:23:18 +00:00
Tomas Votruba
6ead7ed41b Updated Rector to commit 970769d3f91d6d020e3ab8d8863f4af0e06ca498
970769d3f9 [TypeDeclaration] Handle numeric string check on CompleteVarDocTypePropertyRector (#516)
2021-07-26 13:13:36 +00:00
Tomas Votruba
516a748cf7 Updated Rector to commit b47f2c980dac6f39c680c393489c843c3d6a5498
b47f2c980d [TypeDeclaration] Keep simple class on auto import for CompleteVarDocTypePropertyRector (#513)
2021-07-26 13:12:59 +00:00
Tomas Votruba
c231e32779 Updated Rector to commit eb91c61b9537167d6e07a08eae8874ad2c294f5d
eb91c61b95 [Config] Clean up rector.php config (#514)
2021-07-26 09:06:10 +00:00
Tomas Votruba
dfa7a8133f Updated Rector to commit 923bb729839db311cdc77f3105164949a9da61a7
923bb72983 [Naming] Remove MakeBoolPropertyRespectIsHasWasMethodNamingRector, not reliable and rather PHPStan scope (#511)
2021-07-25 16:57:05 +00:00
Tomas Votruba
3e96cfde08 Updated Rector to commit ba990a2ec7a4569d996ee70e2b6ef1d7d19adef3
ba990a2ec7 [Php74] Skip cast (string) on ReflectionType on ChangeReflectionTypeToStringToGetNameRector (#510)
2021-07-25 14:35:58 +00:00
Tomas Votruba
c4c84e0db7 Updated Rector to commit 34fff11f804db752790ca22c7fd5e69bbf51f037
34fff11f80 Remove deprecated addConstructorDependencyToClass() from AbstractRector class, use PropertyToAddCollector directly instaed (#506)
2021-07-25 11:42:11 +00:00
Tomas Votruba
3f2ea1ec26 Updated Rector to commit dfbd366b74df51ca25f509c779499cd9978b5045
dfbd366b74 [Transform] Add MethodCallToMethodCallRector (#505)
2021-07-25 11:10:57 +00:00
Tomas Votruba
8f07228ff7 Updated Rector to commit 93add0f6c9aef0d30a46c16be1ac1ad013b6d3e4
93add0f6c9 [TypeDeclaration] Return null when  is null on AllAssignNodePropertyTypeInferer::inferProperty() (#504)
2021-07-25 11:00:04 +00:00
Tomas Votruba
4a70b89e41 Updated Rector to commit 4456c4690bbe679448a02e20ebc521b1fa9b6b48
4456c4690b extend AutowiredClassMethodAnalyzer with property
2021-07-25 07:47:04 +00:00
Tomas Votruba
4c03335bdf Updated Rector to commit 771a3390b05887e1ff9443cb8b697b3a7455b4ca
771a3390b0 [TypeDeclaration] Handle simple class name as string for non-native class (#501)
2021-07-24 11:53:32 +00:00
Tomas Votruba
bdc5fdd9c5 Updated Rector to commit e3a1f9399b380bc3dd7b6371eeb270aaa14adf96
e3a1f9399b Fix trait check in ClassManipulator (#497)
2021-07-23 12:47:55 +00:00
Tomas Votruba
27e4e06416 Updated Rector to commit 5967ffa2674cda52c5487be141a0b5297e913035
5967ffa267 Fix along other packages gha (#492)
2021-07-23 06:16:10 +00:00
Tomas Votruba
a3e534ff19 Updated Rector to commit db2e76b99cfca0c66d190410f2011a073451e7dc
db2e76b99c load stubs in config
2021-07-22 23:37:17 +00:00
Tomas Votruba
de7dc26c17 Updated Rector to commit 0f9dd92f6c206568dbeb948f98355ecaaff3d205
0f9dd92f6c Fix ClassPropertyAssignToConstructorPromotionRector to skip properties that have attributes (#468)
2021-07-22 17:17:29 +00:00
Tomas Votruba
918f365f5d Updated Rector to commit 17db5110437df6b5610ff1090d9519372bae8e9b
17db511043 [TypeDeclaration] Handle nullable array param type on AddArrayParamDocTypeRector (#485)
2021-07-22 17:04:20 +00:00
Tomas Votruba
29db7ec980 Updated Rector to commit 1747d9899af2115e6aa0af488a106b3abc8ea413
1747d9899a [DeadCode] Skip next used as variable variable on RemoveUnusedVariableAssignRector (#486)
2021-07-22 14:50:45 +00:00