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
Tomas Votruba
1757e83cdc
misc, remove RemoveProjectFileRector ( #5463 )
2021-02-08 18:26:00 +00:00
Tomas Votruba
d7353baf2c
Misc cleanup ( #5456 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-08 12:33:17 +00:00
Tomas Votruba
e9cdf37d16
Decopule nodes docs generator ( #5453 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-08 02:04:48 +01:00
Tomas Votruba
fd8fc59ce1
[PHPStanExtensions] Move decoupled KeepRectorNamespaceForRectorRule ( #5451 )
2021-02-07 21:22:03 +00:00
Tomas Votruba
4cb16f7406
[DeadCode] Fix RemoveSetterOnlyPropertyAndMethodCallRector for no-read, no-write expression ( #5445 )
2021-02-07 11:24:53 +01:00
Tomas Votruba
d402f52238
[TypeDeclaratoin] Add ReturnTypeFromStrictTypedPropertyRector ( #5438 )
2021-02-06 23:09:45 +01:00
Abdul Malik Ikhsan
946b1ac84b
[Privatization] Register MakeOnlyUsedByChildrenProtectedRector to privatization config set ( #5434 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-06 20:41:44 +01:00
Ruud Kamphuis
ec66688a8c
Ignore special class names when using Option::AUTO_IMPORT_NAMES ( #5427 )
...
This makes sure that special class names like `self, parent, static` are not automatically imported.
Without this fix, it would return an error like:
```
PHPStan\Broker\ClassNotFoundException : Class Rector\Naming\Tests\Rector\ClassMethod\RenameVariableToMatchNewTypeRector\Fixture\AnonymousClassd69b28143ae1ad396a5d30a3fc41b247 was not found while trying to analyse it - discovering symbols is probably not configured properly.
```
2021-02-06 17:12:59 +01:00
Tomas Votruba
e04d820bc5
[CodeQuality] Improve CompactToVariablesRector to cover previously defined array ( #5424 )
2021-02-05 12:40:28 +00:00
Abdul Malik Ikhsan
484676325a
[DeadDocBlock] Rollback other_comment_before_var.php.inc for RemoveNonExistingVarAnnotationRector ( #5412 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-03 15:22:50 +01:00
Abdul Malik Ikhsan
94c51e648d
[VendorLocker] improve ClassMethodReturnTypeOverrideGuard::shouldSkipClassMethod() with skip the class method has no return with Expr ( #5406 )
...
* [VendorLocker] improve ClassMethodReturnTypeOverrideGuard::shouldSkipClassMethod() with skip the class has children and current has no return with Expr
* fixture
* [ci-review] Rector Rectify
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-02 16:09:34 +01:00
Abdul Malik Ikhsan
5ac925c812
[TypeDeclaration] Skip ReturnTypeDeclarationRector on has child with no return statement ( #5404 )
...
Co-authored-by: Martin <admin@phpcode.eu>
2021-02-02 00:06:48 +01:00
Tomas Votruba
9a8cce6545
remove deprecated console differ, to use symplify ( #5402 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-01 11:22:22 +01:00
TomasVotruba
7929f252ab
misc
2021-01-31 21:08:43 +01:00
TomasVotruba
9b3c4fca20
use constants fix
2021-01-31 21:06:14 +01:00
Tomas Votruba
b6b8ac0c4c
Less traits 3, drop duplicated issue tests ( #5385 )
2021-01-31 00:14:13 +00:00
Tomas Votruba
7293c3c2a8
less traits 2 ( #5384 )
2021-01-30 23:20:05 +00:00
Tomas Votruba
734972d4b0
less traits ( #5383 )
2021-01-30 21:41:25 +00:00
Tomas Votruba
e2757242be
Various stabilizations ( #5381 )
2021-01-30 20:30:37 +00:00
Tomas Votruba
737b6471c2
[Performance] [Polyfill] Move to DeadCode ( #5380 )
2021-01-30 19:56:32 +00:00
Tomas Votruba
c8da4517ec
drop addBareTag() method ( #5379 )
2021-01-30 18:12:24 +00:00