4062 Commits

Author SHA1 Message Date
Tomas Votruba
c7b76c4983
[DX] Narrow wobly strings to strict ObjectType() #2 (#5694)
* use direct call on isObjectTypes()

* make use of ObjectType over strings
2021-02-27 02:13:22 +00:00
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
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
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
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
5ba33240ca
Bump to Symplify 9.2.1 (#5655) 2021-02-22 20:05:33 +00:00
Tomas Votruba
72d6f1ab86
cleanup unneeded AbstractTemporaryRector methods (#5648) 2021-02-21 23:39:53 +00: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
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
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
3cb9fc28b3
[Coverage] Add --testdox to phpunit command on weekly code coveage generation (#5630) 2021-02-20 14:38:40 +00: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
1ea1f5852b
[DeadCode] Remove RemoveUnusedClassesRector and RemoveUselessJustForSakeInterfaceRector, too unreliable (#5618) 2021-02-19 01:13:43 +01:00
Tomas Votruba
9f5bc8fa16
use ->getNativeType() to get native types (#5601) 2021-02-18 21:34:07 +01:00
Tomas Votruba
c609697f14
[TypeDeclarationStrict] Add AddMethodCallBasedStrictParamTypeRector (#5580) 2021-02-17 16:40:29 +01:00
Tomas Votruba
1d0feb11ee
[CodeQuality] Skip typed property on isset rule (#5592)
Co-authored-by: vladyslavstartsev <17382248+vladyslavstartsev@users.noreply.github.com>
2021-02-17 10:51:32 +00:00
Abdul Malik Ikhsan
8e9b7b39fe
[NodeCollector] Apply NodeRepository::collect() on Name node (#5585)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-17 11:29:39 +01:00
Tomas Votruba
651573a58f
[TypeDeclaration] Add ReturnTypeFromStrictTypedCallRector (#5573) 2021-02-16 16:12:37 +00:00
Tomas Votruba
f03cfa767a
[Output] Drop checkstyle to avoid manual fixes in PRs (#5566) 2021-02-15 21:27:07 +00:00
Tomas Votruba
9d8b88e359
[TypeDeclaration] Add ParamTypeFromStrictTypedPropertyRector, add TYPE_DECLARATION_STRICT set (#5559) 2021-02-15 16:38:30 +00:00
Tomas Votruba
054de822ed
[DoctrineCodeQuality] Add tests (#5540)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-14 19:51:04 +00:00
Abdul Malik Ikhsan
01360925b2
[EarlyReturn] Add ReturnAfterToEarlyBreakRector (#5529)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-14 10:53:04 +01:00
Tomas Votruba
1a45becf74
[Nette] Add false return check to template check (#5535)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-13 23:26:00 +01:00
Tomas Votruba
6ce792c70a
[CodingStyle] Drop AnnotateThrowablesRector to narrow code scope, designed for custom community rule (#5528) 2021-02-13 15:19:19 +01:00
Tomas Votruba
d0fb658dad
[Nette] Improve TemplateMagicAssignToExplicitVariableArrayRector with conditional if/else (#5527)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-13 13:25:47 +00:00
Tomas Votruba
eb3276e7fc
[NetteCodeQuality] Add MergeTemplateSetFileToTemplateRenderRector (#5525) 2021-02-13 01:08:54 +00:00
Tomas Votruba
afdf5839e7
[testing] change provideConfigFileInfo() to provideConfigFilePath() (#5518) 2021-02-12 19:19:40 +01:00
Tomas Votruba
1586fa7899
[Privatization] Skip privatization in abstract only on open-source type (#5514) 2021-02-11 22:24:40 +00:00
Tomas Votruba
82208c0730
[DeadCode] Fix RemoveUnusedPrivatePropertyRector in foreach (#5507)
Co-authored-by: Oliver Nybroe <oliver@worksome.com>
2021-02-11 15:01:41 +00:00
Tomas Votruba
63ea75cbf5
[testing] Add update tests feature to AbstractCommunityRectorTestCase (#5504) 2021-02-11 11:46:54 +00:00
Tomas Votruba
9d59cfa70b
[PostRector] Allow skip parameters (#5499) 2021-02-10 19:43:11 +01:00
TomasVotruba
2f907222a3 typo 2021-02-10 16:44:08 +01:00
Tomas Votruba
346bacfe19
[Tests] Split main test case and community test case (#5481)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-10 11:57:25 +00:00
Tomas Votruba
69d5980d1d
simplify EnabledRectorsProvider (#5486)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-09 23:54:08 +00:00
Tomas Votruba
560b720b83
[DependencyInjectoin] Add ActionInjectionToConstructorInjectionRector (#5485) 2021-02-09 22:57:20 +00:00
Tomas Votruba
7a3f5a8c0a
remove unused RectorClassesProvider (#5482)
* remove unused RectorClassesProvider

* README: remove ci-checkstyle link, marginal topic, to avoid confusion for first readers
2021-02-09 22:43:04 +00:00
Abdul Malik Ikhsan
6a6ac8332b
[EarlyReturn] Rename ChangeAndIfContinueToMultiContinueRector to ChangeOrIfContinueToMultiContinueRector (#5483)
* [EarlyReturn] Register ChangeAndIfContinueToMultiContinueRector to early-return config set

* try with clone $if

* [EarlyReturn] Rename ChangeAndIfContinueToMultiContinueRector to ChangeOrIfContinueToMultiContinueRector

* re-register

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

* reduce complexity

* [ci-review] Rector Rectify

Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-09 22:52:57 +01:00
Abdul Malik Ikhsan
1a9544f5f4
[DeadCode] Register RemoveDeadInstanceOfRector to dead-code config set (#5474)
* [DeadCode] Register RemoveDeadInstanceOfRector to dead-code config set

* failing fixture nullable type

* null type check

* handle child check and null check

* failing fixture with php doc type

* debug

* ensure different var

* fix

* fixture rename

* skip assign as may has side effect

* Param check

* clean up

* clean up

* final touch

* final touch

* fix

* fix

* [ci-review] Rector Rectify

* [ci-review] Rector Rectify

Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-09 20:04:20 +01:00
Tomas Votruba
ecbef2bcaa
[Tests] remove getPhpVersion() helped method, use configs instead (#5477) 2021-02-09 17:25:16 +00:00
Tomas Votruba
e822db8625
moving ArrayPartPhpDocTagPrinterTrait and PrintTagValueNodeTrait to services (#5473) 2021-02-09 14:17:25 +00:00
Tomas Votruba
e0ad0f960f
[Tests] Move from getRectorsWithConfiguration() to provideConfigFileInfo() to make test configs more intuitive (#5468)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-09 15:02:29 +01:00
Tomas Votruba
9f6834c46e
[DeadCode] Add RemoveUnusedConstructorParamRector (#5467)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-09 04:55:21 +01:00
Tomas Votruba
5e95bbb294
Remove NotifyingNodeRemover, RemovedAndAddedFilesTrait, merge traits to AbstractRector (#5466)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-09 01:52:35 +00:00
Tomas Votruba
f3b05c714c
[PHPUnit] Improve TryCatchToExpectExceptionRector complexity (#5465)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-09 00:42:47 +01:00
TomasVotruba
accb58ec41 array string type 2021-02-08 22:02:08 +01:00
Tomas Votruba
50f6adf47e
consolidate AbstractRectorTrait (#5464)
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-08 21:00:45 +00:00