Commit Graph

672 Commits

Author SHA1 Message Date
Tomas Votruba
e3437ec57c Updated Rector to commit 6ad6595d75
6ad6595d75 [Autodiscovery] Using AstResolver->resolveClassFromName() on ValueObjectClassAnalyzer (#560)
2021-08-01 17:00:01 +00:00
Tomas Votruba
b0f145ae07 Updated Rector to commit 205e7a5bd0
205e7a5bd0 [Core] Move isPropertyFetch() to PropertyFetchAnalyzer (#563)
2021-08-01 16:59:22 +00:00
Tomas Votruba
c512faabc2 Updated Rector to commit 00015a4390
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 5ad522ddaa
5ad522ddaa [DowngradePhp80] Handle coalesce and truthy ternary directly without assign (#567)
2021-08-01 16:58:17 +00:00
Tomas Votruba
a6fffa8856 Updated Rector to commit 5607f90669
5607f90669 [Testing] Avoid repetitive getService(NodesWithFileDestinationPrinter) in loop (#570)
2021-08-01 16:57:10 +00:00
Tomas Votruba
0347b32272 Updated Rector to commit 44a00682aa
44a00682aa [Config] Add scoper.php to rector config path (#569)
2021-08-01 16:55:31 +00:00
Tomas Votruba
dde963dd54 Updated Rector to commit 424289e736
424289e736 [PHPStan] Clean up PHPStan ignore errors (#568)
2021-08-01 11:29:17 +00:00
Tomas Votruba
d0e5aaee2f Updated Rector to commit 645b7a8e8f
645b7a8e8f [automated] Re-Generate Nodes/Rectors Documentation (#562)
2021-08-01 00:25:55 +00:00
Tomas Votruba
0135983f7d Updated Rector to commit 5263f415a5
5263f415a5 [Tests] Speed up tests with brianium/paratest (#551)
2021-07-31 11:55:31 +00:00
Tomas Votruba
f42d721e86 Updated Rector to commit 1b113a0c93
1b113a0c93 [Php70] Skip class has __callStatic() on StaticCallOnNonStaticToInstanceCallRector (#555)
2021-07-31 11:52:34 +00:00
Tomas Votruba
435990d383 Updated Rector to commit 057c5e6853
057c5e6853 Fix AnonymousFunctionFactory for class constant reference (#552)
2021-07-31 11:43:58 +00:00
Tomas Votruba
bee6271c0a Updated Rector to commit 59d63d6f4a
59d63d6f4a [TypeDeclaration] Allow ArrowFunction on ReturnTypeFromStrictTypedCallRector (#556)
2021-07-31 11:40:13 +00:00
Tomas Votruba
c22db4f812 Updated Rector to commit e3321d9df3
e3321d9df3 [DeadCode] Using SideEffectNodeDetector::detectCallExpr() on RemoveUnusedVariableAssignRector (#553)
2021-07-31 11:35:23 +00:00
Tomas Votruba
c3bc0fc47d Updated Rector to commit d9f47f8572
d9f47f8572 [DeadCode] Using SideEffectNodeDetector::detectCallExpr() on RemoveOverriddenValuesRector (#554)
2021-07-31 11:34:50 +00:00
Tomas Votruba
7c6a2a8986 Updated Rector to commit 53c5f073fd
53c5f073fd cleanup
2021-07-30 10:43:20 +00:00
Tomas Votruba
f7dcf79c1e Updated Rector to commit 325c6be3ae
325c6be3ae [TypeDeclaration] Add ParamTypeByMethodCallTypeRector (#544)
2021-07-30 10:40:03 +00:00
Tomas Votruba
276fac662d Updated Rector to commit 29c28fda87
29c28fda87 [EasyTesting] dogfood next iteration (#549)
2021-07-30 08:39:55 +00:00
Tomas Votruba
7b8909a8bc Updated Rector to commit 62cca3bfeb
62cca3bfeb [CodingStyle] Fix ArrayCallableToMethodCallFactory for non-object types (#548)
2021-07-30 07:56:13 +00:00
Tomas Votruba
406cb3c9f8 Updated Rector to commit a152283fd7
a152283fd7 cleanup (#547)
2021-07-30 07:40:46 +00:00
Tomas Votruba
b777b6eb45 Updated Rector to commit eb7d73b432
eb7d73b432 [DeadCode][CodeQualityStrict] Add SideEffectNodeDetector::detectCallExpr() (#543)
2021-07-29 17:27:50 +00:00
Tomas Votruba
74fd096ad7 Updated Rector to commit 46a6ab042e
46a6ab042e [PHP 8.0] Fix strinable interface detection (#542)
2021-07-29 16:36:00 +00:00
Tomas Votruba
70059f5751 Updated Rector to commit 7a3a2dc12b
7a3a2dc12b Add Symfony's bootstrap80 files to the list for namespace removal (#537)
2021-07-29 14:28:33 +00:00
Tomas Votruba
e5958f326a Updated Rector to commit 4be1f2aee7
4be1f2aee7 [DowngradePhp80] Allow Truthy with Ternary on DowngradeThrowExprRector (#539)
2021-07-29 10:07:41 +00:00
Tomas Votruba
d162a45f40 Updated Rector to commit 6e73a1f069
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 cdad000d81
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 3cf3e1fc25
3cf3e1fc25 [TypeDeclaration] Add ParamTypeByParentCallTypeRector (#519)
2021-07-28 19:43:49 +00:00
Tomas Votruba
8e55ca0a2c Updated Rector to commit a467f764ec
a467f764ec [DowngradePhp80] Add DowngradeThrowExprRector (#533)
2021-07-28 16:54:48 +00:00
Tomas Votruba
f8f5156f46 Updated Rector to commit 32ef12c263
32ef12c263 [DeadCode] Skip native variable on RemoveOverriddenValuesRector (#536)
2021-07-28 16:46:00 +00:00
Tomas Votruba
f41cfb1de8 Updated Rector to commit b4392749f4
b4392749f4 Fix some code samples (#535)
2021-07-28 12:55:48 +00:00
Tomas Votruba
28f5ca3f25 Updated Rector to commit 35dc186642
35dc186642 Update skip_null_safe_test.php.inc (#534)
2021-07-28 12:54:47 +00:00
Tomas Votruba
398f8f8197 Updated Rector to commit c93b40240f
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 f44e09e077
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 5d8789025d
5d8789025d Fix NullsafeOperatorRector (#532)
2021-07-28 10:00:12 +00:00
Tomas Votruba
6c3196a2e7 Updated Rector to commit 8299b2db41
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 9b663a8821
9b663a8821 [DeadCode] Refactor PureFunctionDetector: ensure NativeFunctionReflection for pure function check (#528)
2021-07-28 07:06:07 +00:00
Tomas Votruba
0032287992 Updated Rector to commit 687a77765f
687a77765f Added MemoryCacheStorage and use it in  (#525)
2021-07-28 07:05:44 +00:00
Tomas Votruba
b8d4e57170 Updated Rector to commit a7f111e201
a7f111e201 [PHPStan] Clean up PHPStan ignore error messages (#530)
2021-07-28 04:37:30 +00:00
Tomas Votruba
bb9a43a22d Updated Rector to commit 65eaecb4de
65eaecb4de [DeadCode] Skip Static Call fluent on RemoveEmptyMethodCallRector (#526)
2021-07-27 14:23:09 +00:00
Tomas Votruba
5394ed5dd5 Updated Rector to commit 4b5ac4d548
4b5ac4d548 [DeadCode] Skip Assign to PropertyFetch on RemoveAssignOfVoidReturnFunctionRector (#523)
2021-07-27 14:21:12 +00:00
Tomas Votruba
9b938c3aa8 Updated Rector to commit a8fd8a3315
a8fd8a3315 [DeadCode] Handle RemoveDeadInstanceOfRector on non typed property (#524)
2021-07-27 14:20:41 +00:00
Tomas Votruba
a23b777a9a Updated Rector to commit 3a96b9097d
3a96b9097d [DeadCode] Skip fluent return  on RemoveEmptyMethodCallRector (#521)
2021-07-27 11:16:44 +00:00
Tomas Votruba
9d2869edb7 Updated Rector to commit e5d95bda10
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 834ea49796
834ea49796 [TypeDeclaration] Skip multiple class-string[] array on CompleteVarDocTypePropertyRector (#518)
2021-07-26 16:43:00 +00:00
Tomas Votruba
e105af90f5 Updated Rector to commit 89ef54d16c
89ef54d16c fix cs (#517)
2021-07-26 16:26:09 +00:00
Tomas Votruba
2e2725a511 Updated Rector to commit 6478ec1c41
6478ec1c41 Sync FileCacheStorage with changes from phpstan-src (#498)
2021-07-26 13:28:02 +00:00
Tomas Votruba
97c6e16a85 Updated Rector to commit b47f2c980d
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 970769d3f9
970769d3f9 [TypeDeclaration] Handle numeric string check on CompleteVarDocTypePropertyRector (#516)
2021-07-26 13:13:36 +00:00
Tomas Votruba
516a748cf7 Updated Rector to commit b47f2c980d
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 eb91c61b95
eb91c61b95 [Config] Clean up rector.php config (#514)
2021-07-26 09:06:10 +00:00
Tomas Votruba
dfa7a8133f Updated Rector to commit 923bb72983
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 ba990a2ec7
ba990a2ec7 [Php74] Skip cast (string) on ReflectionType on ChangeReflectionTypeToStringToGetNameRector (#510)
2021-07-25 14:35:58 +00:00
Tomas Votruba
1139ca19b1 Updated Rector to commit cefa0d516b
cefa0d516b [Config] Clean up rector.php skip option config (#509)
2021-07-25 13:47:12 +00:00
Tomas Votruba
7b92aa73fa Rector 0.11.40 2021-07-25 12:41:49 +00:00
Tomas Votruba
c87080e236 Updated Rector to commit a5d59dab8b
a5d59dab8b Remove PropertyAdder, extra layer without value (#507)
2021-07-25 12:40:11 +00:00
Tomas Votruba
a34300b4e6 Updated Rector to commit 875156d6d0
875156d6d0 [PHPStan] Clean up PHPStan ignore error messages (#508)
2021-07-25 12:21:52 +00:00
Tomas Votruba
c4c84e0db7 Updated Rector to commit 34fff11f80
34fff11f80 Remove deprecated addConstructorDependencyToClass() from AbstractRector class, use PropertyToAddCollector directly instaed (#506)
2021-07-25 11:42:11 +00:00
Tomas Votruba
c141cde162 Updated Rector to commit 34c3e8fce9
34c3e8fce9 [TypeDeclaration] Handle (object) cast on CompleteVarDocTypePropertyRector (#503)
2021-07-25 11:41:40 +00:00
Tomas Votruba
3f2ea1ec26 Updated Rector to commit dfbd366b74
dfbd366b74 [Transform] Add MethodCallToMethodCallRector (#505)
2021-07-25 11:10:57 +00:00
Tomas Votruba
8f07228ff7 Updated Rector to commit 93add0f6c9
93add0f6c9 [TypeDeclaration] Return null when  is null on AllAssignNodePropertyTypeInferer::inferProperty() (#504)
2021-07-25 11:00:04 +00:00
Tomas Votruba
dcbf54a15b Updated Rector to commit a4f8a77418
a4f8a77418 include injected property in deps
2021-07-25 07:52:22 +00:00
Tomas Votruba
4a70b89e41 Updated Rector to commit 4456c4690b
4456c4690b extend AutowiredClassMethodAnalyzer with property
2021-07-25 07:47:04 +00:00
Tomas Votruba
cae78baa44 Rector 0.11.39 2021-07-24 12:10:31 +00:00
Tomas Votruba
4c03335bdf Updated Rector to commit 771a3390b0
771a3390b0 [TypeDeclaration] Handle simple class name as string for non-native class (#501)
2021-07-24 11:53:32 +00:00
Tomas Votruba
9ffc8ec64a Updated Rector to commit 3d1ec1d85d
3d1ec1d85d bump docs
2021-07-23 16:35:16 +00:00
Tomas Votruba
29501d46b5 Updated Rector to commit 9d51f3c47f
9d51f3c47f [Naming] Fix imported trait names (#500)
2021-07-23 14:43:26 +00:00
Tomas Votruba
bdc5fdd9c5 Updated Rector to commit e3a1f9399b
e3a1f9399b Fix trait check in ClassManipulator (#497)
2021-07-23 12:47:55 +00:00
Tomas Votruba
27e4e06416 Updated Rector to commit 5967ffa267
5967ffa267 Fix along other packages gha (#492)
2021-07-23 06:16:10 +00:00
Tomas Votruba
a3e534ff19 Updated Rector to commit db2e76b99c
db2e76b99c load stubs in config
2021-07-22 23:37:17 +00:00
Tomas Votruba
2f9cc5d362 Updated Rector to commit 178f3f643c
178f3f643c bump docs (#488)
2021-07-22 18:40:24 +00:00
Tomas Votruba
e5ec4dcb7a Updated Rector to commit c98696c276
c98696c276 [DeadCode] Skip RemoveUnusedPrivatePropertyRector on property used by Trait in Source (#481)
2021-07-22 17:24:18 +00:00
Tomas Votruba
de7dc26c17 Updated Rector to commit 0f9dd92f6c
0f9dd92f6c Fix ClassPropertyAssignToConstructorPromotionRector to skip properties that have attributes (#468)
2021-07-22 17:17:29 +00:00
Tomas Votruba
2601c9a904 Updated Rector to commit 99e5c8add0
99e5c8add0 [Stubs] Fix Regression Scoped autoload introduced in 0.11.38 (#484)
2021-07-22 17:14:05 +00:00
Tomas Votruba
918f365f5d Updated Rector to commit 17db511043
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 1747d9899a
1747d9899a [DeadCode] Skip next used as variable variable on RemoveUnusedVariableAssignRector (#486)
2021-07-22 14:50:45 +00:00
Tomas Votruba
26b3ebb197 Rector 0.11.38 2021-07-21 14:29:45 +00:00
Tomas Votruba
8b47bb5ba9 Updated Rector to commit bba606c609
bba606c609 Fix alias object imports (#480)
2021-07-21 14:23:45 +00:00
Tomas Votruba
aae88d8c24 Updated Rector to commit dc10595b7c
dc10595b7c [Privatization] Handle empty construct change property to local variable on ChangeLocalPropertyToVariableRector (#479)
2021-07-21 13:50:51 +00:00
Tomas Votruba
e3f99041de Updated Rector to commit 24a32dfefb
24a32dfefb Fix docs double import (#478)
2021-07-21 13:46:30 +00:00
Tomas Votruba
d15985c4e5 Updated Rector to commit 242fa16610
242fa16610 avoid using deprecated method directly
2021-07-21 09:38:33 +00:00
Tomas Votruba
1127b0c4e2 Updated Rector to commit bc9d2d48d5
bc9d2d48d5 [DX] Add MissedRectorDueVersionChecker (#465)
2021-07-21 09:35:57 +00:00
Tomas Votruba
ff3d08c8e0 Updated Rector to commit bc29f1bb50
bc29f1bb50 Update how_to_add_test_for_rector_rule.md (#473)
2021-07-21 09:15:54 +00:00
Tomas Votruba
f679476193 Updated Rector to commit 1478d8eb78
1478d8eb78 [Core] Comment @todo tweak FileProcessor::parseFileInfoToLocalCache() (#477)
2021-07-21 09:00:56 +00:00
Tomas Votruba
deee7a1126 Updated Rector to commit 820cb16122
820cb16122 Update README.md (#472)
2021-07-21 08:58:31 +00:00
Tomas Votruba
4bf7cb7c66 Updated Rector to commit 031d14f6e4
031d14f6e4 [Core] Ensure no infinite loop in PhpFileProcessor (#476)
2021-07-21 08:53:37 +00:00
Tomas Votruba
843b27c4dc Updated Rector to commit 83419c4376
83419c4376 [CodeQuality] Handle both ExplicitBoolCompareRector + CountArrayToEmptyArrayComparisonRector usage (#474)
2021-07-21 08:48:08 +00:00
Tomas Votruba
7483b5a016 Updated Rector to commit 692e9e3db4
692e9e3db4 Rector 7.0 Native init steps (#475)
2021-07-21 08:41:12 +00:00
Tomas Votruba
fd9f6abc9e Rector 0.11.37 2021-07-20 21:31:45 +00:00
Tomas Votruba
7d162cbaa1 Updated Rector to commit 9953c4f59c
9953c4f59c fix cs
2021-07-20 20:58:53 +00:00
Tomas Votruba
8e2ec60a86 Updated Rector to commit 7427f6df2a
7427f6df2a [DowngradePhp80] Allow FuncCall on DowngradeNamedArgumentRector (#466)
2021-07-20 20:57:20 +00:00
Tomas Votruba
85c097bb56 Updated Rector to commit 0fe1656da6
0fe1656da6 [DeadCode] Fix RemoveUnusedPromotedPropertyRector for private trait-used promoted param (#470)
2021-07-20 20:56:20 +00:00
Tomas Votruba
9e4b848150 Updated Rector to commit 48ccb539d4
48ccb539d4 [DeadCode] Handle null start token position attribute in NodeByTypeAndPositionCollector (#469)
2021-07-20 14:23:43 +00:00
Tomas Votruba
f5fb11d45f Updated Rector to commit 269a76303d
269a76303d skip Windows-broken rules (#463)
2021-07-19 21:11:19 +00:00
Tomas Votruba
cad500c817 Updated Rector to commit 0d3e54357f
0d3e54357f extract VendorLocationDetector (#462)
2021-07-19 20:57:26 +00:00
Tomas Votruba
bfef025ed5 Updated Rector to commit 7f88813919
7f88813919 Adding a fixture (#424)
2021-07-19 09:26:18 +00:00
Tomas Votruba
1c8f0de25b Updated Rector to commit 9da4597c9a
9da4597c9a Improve attribute order rule (#460)
2021-07-19 09:21:13 +00:00
Tomas Votruba
550e40fa60 Updated Rector to commit 1c76f25259
1c76f25259 [Privatization][TypeDeclaration] Invalid return type on use RepeatedLiteralToClassConstantRector + ReturnTypeDeclarationRector (#457)
2021-07-19 08:07:40 +00:00
Tomas Votruba
767752c16e Updated Rector to commit bb41d72116
bb41d72116 [CodingStyle] Add OrderAttributesRector (#459)
2021-07-19 06:34:07 +00:00
Tomas Votruba
0ead874fad Updated Rector to commit 75c06eab69
75c06eab69 Fix match static method name in annotation (#446)
2021-07-19 05:06:26 +00:00
Tomas Votruba
fcdb802092 Updated Rector to commit 10e545fc24
10e545fc24 [TypeDeclaration] Handle nullable return static type on ReturnTypeDeclarationRector (#456)
2021-07-18 15:29:48 +00:00
Tomas Votruba
f111676d1e Updated Rector to commit aaa5b3adce
aaa5b3adce [TypeDeclaration] Fixes Return Type static in ReturnTypeDeclarationRector (#454)
2021-07-18 11:06:04 +00:00