11152 Commits

Author SHA1 Message Date
Tomas Votruba
0e7b845789
[DX] Narrow wobly strings to strict ObjectType() (#5693)
* [Renaming] Remove support for wildcards in method rename, to keep consistency and use of PHPStan ObjectType

* [DX] Use ObjectType instead of strings

* make isObjectTypes() require ObjectType

* decoupled SelfContainerFactory

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-27 00:58:09 +00:00
Tomas Votruba
a61a2c6e5e
use getNodeTypes() with class-string generic type (#5692)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-27 00:06:15 +00:00
Abdul Malik Ikhsan
8604151f7f
[CodingStyle] Skip RemoveUnusedAliasRector on used in ClassConstFetch (#5691) 2021-02-26 18:18:14 +01:00
Abdul Malik Ikhsan
38e8520635
[NodeTypeResolver] Handle object type or nullable object type from Parameter as Identifier (#5686) 2021-02-26 10:39:07 +01:00
Abdul Malik Ikhsan
a9ca776ddc
[EarlyReturn] Register ReturnBinaryOrToEarlyReturnRector to early-return config set (#5679)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-25 10:19:43 +01:00
Abdul Malik Ikhsan
be554a4a53
[EarlyReturn] Add ReturnBinaryOrToEarlyReturnRector (#5661)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-25 09:41:43 +01:00
Abdul Malik Ikhsan
5caae361e8
[Naming] Add RenameForeachValueVariableToMatchExprVariableRector (#5672)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-25 09:38:30 +01:00
Abdul Malik Ikhsan
9a30a743a9
[DeadDocBlock] Skip RemoveUselessReturnTagRector on Generic Type (#5675) 2021-02-25 09:37:18 +01:00
Abdul Malik Ikhsan
105e2e7026
[DeadDocBlock] Skip RemoveUselessParamTagRector on Generic Type (#5677)
Co-authored-by: Oskar Stark <oskarstark@googlemail.com>
2021-02-25 09:36:33 +01:00
Abdul Malik Ikhsan
8ccef95979
[Privatization] Skip PrivatizeLocalOnlyMethodRector on use of SymfonyRouteTagValueNode (#5671)
* [Privatization] Fixes #5670 Skip PrivatizeLocalOnlyMethodRector on use of SymfonyRouteTagValueNode

* fixture

* [ci-review] Rector Rectify

Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-24 16:21:11 +01:00
addshore
68ed2eaa7c
[TypeDeclaration] Add types when dataProviders that yield are used (#5625)
Followup to https://github.com/rectorphp/rector/pull/5615
which fixed behaviour for regular dataProviders
2021-02-23 16:30:42 +01:00
Abdul Malik Ikhsan
eecf15dc15
[DeadCode] Add Extra files test for RemoveEmptyAbstractClassRector (#5598)
Co-authored-by: TomasVotruba <tomas.vot@gmail.com>
2021-02-23 15:28:41 +00:00
Tomas Votruba
ecf4e56246
update monorepo-builder syntax (#5662) 2021-02-23 12:15:16 +01:00
Abdul Malik Ikhsan
f3af24321a
[Bin] Handle possible PHPStan Stubs runtime locations (#5649) 2021-02-23 10:50:13 +00:00
Abdul Malik Ikhsan
a474ee23f4
[EarlyReturn] Skip ReturnAfterToEarlyOnBreakRector on non-linear previous assignment before foreach (#5660)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-23 11:47:52 +01:00
Tomas Votruba
cabe032008
[static] Improve types (#5657)
Co-authored-by: Ruud Kamphuis <ruudk@users.noreply.github.com>
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-23 01:25:34 +00:00
Tomas Votruba
9514a2531f
use RequireStringArgumentInConstructorRule (#5656)
Co-authored-by: Ruud Kamphuis <ruudk@users.noreply.github.com>
2021-02-22 22:15:33 +01:00
Tomas Votruba
5ba33240ca
Bump to Symplify 9.2.1 (#5655) 2021-02-22 20:05:33 +00:00
Abdul Malik Ikhsan
cbbd008f50
[EarlyReturn] Skip PreparedValueToEarlyReturnRector on previous var used in Assign Expr in if stmt (#5650) 0.9.31 2021-02-22 11:01:01 +01:00
Abdul Malik Ikhsan
6ebecd91b0
[Php80] Handle Nullable Type on ClassPropertyAssignToConstructorPromotionRector (#5644) 2021-02-22 10:59:51 +01:00
Tomas Votruba
72d6f1ab86
cleanup unneeded AbstractTemporaryRector methods (#5648) 2021-02-21 23:39:53 +00:00
Abdul Malik Ikhsan
db5f557947
[Php80] Skip ChangeSwitchToMatchRector on missed break (#5645) 2021-02-21 15:34:57 +01:00
Tomas Votruba
e571128b85
[Transform] Move FunctionCallToConstantRector to FuncCallToConstFetchRector (#5642) 2021-02-21 09:40:54 +00:00
Abdul Malik Ikhsan
2205766dbc
[CodeQuality] Mirror comment on InlineIfToExplicitIfRector (#5643) 2021-02-21 10:33:21 +01:00
Abdul Malik Ikhsan
f1f14c25d8
[EarlyReturn] Handle ChangeAndIfToEarlyReturnRector has Return expr in if stmt fixture (#5627)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-21 10:32:45 +01:00
github-actions[bot]
0c75b0c756
[automated] Re-Generate CHANGELOG.md (#5640)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2021-02-21 01:06:48 +01:00
github-actions[bot]
eb4bc68409
[automated] Re-Generate Nodes/Rectors Documentation (#5641)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2021-02-21 01:06:30 +01:00
Tomas Votruba
8c079420dc
[CodingStyle] Skip double generic class string (#5639) 0.9.30 2021-02-21 01:05:22 +01:00
Tomas Votruba
9a376d98e5
[Arguments] New rule set from former generics (#5637)
* [Transform] Move SingleToManyMethodRector

* [Transform] Move WrapReturnRector here

* [DependencyInjectoin] Move AddMethodParentCallRecto here

* [Arguments] Create new package from old generics only around arguments

* composer docs uild
2021-02-21 00:21:19 +01:00
Tomas Votruba
947a75f6aa
rebuild docs (#5636) 2021-02-21 00:02:05 +01:00
Tomas Votruba
13e33f0bff
[Generic] Decouple rules to tailored sets (#5635)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-20 23:48:31 +01:00
Tomas Votruba
da535f7809
[PHP 5.5] Make StringClassNameToClassConstantRector as part of constants (#5634) 2021-02-20 21:53:11 +01:00
Tomas Votruba
0e5a777b00
simplify input configs (#5632)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-20 19:48:04 +00:00
Abdul Malik Ikhsan
9f4353c2af
[Coverage] Delete weekly coverage generation (#5631)
* [Coverage] Delete weekly coverage generation

* remove coverage badge
2021-02-20 17:41:38 +00:00
Abdul Malik Ikhsan
3cb9fc28b3
[Coverage] Add --testdox to phpunit command on weekly code coveage generation (#5630) 2021-02-20 14:38:40 +00:00
addshore
26cc82a223
[TypeDeclaration] Fix array type issue in PHPUnitDataProviderParamTypeInferer (#5615) 2021-02-20 12:21:56 +01:00
Tomas Votruba
0f9ac6f1e2
[CodingStyle] Improve constant array type (#5626)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-20 00:14:58 +00:00
Tomas Votruba
362ebbea46
[TypeDeclaration] Add ReturnTypeFromReturnNewRector (#5624)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-19 12:01:23 +00:00
Abdul Malik Ikhsan
0b17b91637
[Renaming] Skip RenameMethodRector on interface wildcard used (#5622)
Co-authored-by: Ruud Kamphuis <ruudk@users.noreply.github.com>
2021-02-19 10:28:45 +01:00
Tomas Votruba
652459ad3b
merge composer_validate (#5620) 2021-02-19 01:36:48 +01:00
Tomas Votruba
1ea1f5852b
[DeadCode] Remove RemoveUnusedClassesRector and RemoveUselessJustForSakeInterfaceRector, too unreliable (#5618) 2021-02-19 01:13:43 +01:00
Tomas Votruba
6e37d9af4e
[CodeQuality] Fix printing of fixed throws statement (#5616)
Co-authored-by: Stanislav Janů <info@lweb.cz>
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-18 23:34:51 +01:00
Tomas Votruba
19810c2b9a
move FunctionToStaticMethodRector to Transform (#5613) 2021-02-18 21:35:10 +00:00
Tomas Votruba
cfd0b526d2
[Legacy] Drop RemoveIncludeRector (#5614) 2021-02-18 21:28:56 +00:00
Tomas Votruba
4ac321eda6
[Legacy] Drop AddTopIncludeRector, very narrow use case for generic users; better implemented externally (#5610) 2021-02-18 21:57:06 +01:00
Tomas Votruba
9f5bc8fa16
use ->getNativeType() to get native types (#5601) 2021-02-18 21:34:07 +01:00
Ruud Kamphuis
5e5abd336d
[TypedPropertyFromStrictConstructorRector] Keep var tag when it defines iterable type (#5611) 2021-02-18 21:33:38 +01:00
Abdul Malik Ikhsan
4416807562
[EarlyReturn] Register PreparedValueToEarlyReturnRector to early-return config set (#5606)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-18 17:01:55 +01:00
Tomas Votruba
ddfeae3391
drop --match-git-diff, not reliable for dependencies; use enable_cache instead (#5609)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-18 15:55:31 +00:00
Abdul Malik Ikhsan
19459b80fb
[EarlyReturn] Add PreparedValueToEarlyReturnRector (#5603)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-18 14:55:53 +01:00