Tomas Votruba
37268aa9e0
workaround template node ( #5812 )
2021-03-09 15:49:33 +00:00
Tomas Votruba
e09560c68f
use single type ( #5811 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-09 15:22:49 +01:00
Tomas Votruba
88ba75f820
[PHPUnit] Remove old test case in AddSeeTestAnnotationRector ( #5809 )
2021-03-09 10:54:34 +00:00
Tomas Votruba
7f8d0d5af8
misc ( #5805 )
2021-03-09 00:29:10 +00:00
Dominik Peters
4d694008f6
Fix AssertEqualsToSameRector ( #5800 )
...
* added failing tests
* extended tests and fixed problem
* cleaned up unused imports
* use NodeTypeResolver from parent class
* fixed phpdoc
Co-authored-by: Dominik Peters <d.peters@billiger-mietwagen.de>
2021-03-09 01:06:37 +01:00
Tomas Votruba
79d3d98e14
fix ctor ( #5808 )
2021-03-09 00:04:39 +00:00
Tomas Votruba
dc5dfe228b
Fix missing native method static analysis ( #5804 )
2021-03-08 20:19:45 +00:00
Tomas Votruba
1cbb6113fc
[CI] remove changelog linker ( #5803 )
2021-03-08 19:50:03 +00:00
Tomas Votruba
8a0d6d9305
skip so many types ( #5802 )
2021-03-08 20:36:51 +01:00
Tomas Votruba
80c4fc8aab
[TypeDeclarationg] Add Tokens iterator to AddArrayReturnDocTypeRector and AddArrayParamDocTypeRector ( #5796 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-08 14:52:36 +00:00
Dominik Peters
5f70de5502
[Phpunit] Prevent MethodCall instances of being processed ( #5798 )
...
Co-authored-by: Dominik Peters <d.peters@billiger-mietwagen.de>
2021-03-08 11:21:27 +01:00
Tomas Votruba
896ca733dc
cherry-pick downgrade update ( #5794 )
2021-03-07 21:25:43 +00:00
Tomas Votruba
8d79b4fb9e
[TypeDeclaration] Improve param by caller type #4 ( #5793 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-07 21:07:50 +00:00
Tomas Votruba
b052d46b15
[TypeDeclaration] Improve param by caller type #3 ( #5792 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-07 19:37:48 +00:00
Tomas Votruba
29487b75bb
[TypedProperty] Fix short import on already existing docblock ( #5791 )
...
* short import test case
* fix importing of already existing short name in docblock
2021-03-07 17:59:10 +00:00
Tomas Votruba
ba1444959d
[TypeDeclaration] Improve param by caller type #2 ( #5787 )
2021-03-07 14:27:17 +00:00
Tomas Votruba
3fea742085
[TypeDeclaration] Improve param by caller types ( #5786 )
2021-03-06 22:44:43 +01:00
Tomas Votruba
031deda881
[TypeDeclaration] Add AddParamTypeFromCallersRector ( #5782 )
2021-03-06 21:16:18 +00:00
Abdul Malik Ikhsan
956cac70a0
[TypeDeclaration] Handle return self on ReturnTypeFromStrictTypedCallRector ( #5781 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-06 15:41:59 +01:00
Abdul Malik Ikhsan
d3cbe44928
[Php72] Handle usage super global on CreateFunctionToAnonymousFunctionRector ( #5778 )
2021-03-05 13:30:00 +01:00
Abdul Malik Ikhsan
d7592f59ec
[Naming] Register RenameForeachValueVariableToMatchExprVariableRector to naming config set ( #5696 )
...
* [Naming] Register RenameForeachValueVariableToMatchExprVariableRector to naming config set
* fix property fetch not from this
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
* fix
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
* fixture fix
* phpstan
* [ci-review] Rector Rectify
* phpstan
* extract to separate method for collect assigns by name
* adding InflectorSingularResolver service
* skip single prefix and length >= 40
* add failing fixture to skip plural camel case
* use regex to get camel cases
* implemented singularize camel cased
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
* phpstan
* handle singular verb news -> new
* [ci-review] Rector Rectify
* fixture fix
* handle has
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
* phpstan
* phpstan
* handle left side By
* [ci-review] Rector Rectify
* re-use resolve call
* [ci-review] Rector Rectify
* phpstan
* [ci-review] Rector Rectify
* final touch
* final touch
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
* use previous By in the middle
* update $childClassReflection->hasProperty($propertyName)
* [ci-review] Rector Rectify
* catchKeys
* regex fix
* fixture
* [ci-review] Rector Rectify
* try use check array
* Revert "try use check array"
This reverts commit adb9f767f20ea2544e5ccfc9cfe361ecc929912a.
* use files
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-05 11:55:40 +01:00
Tomas Votruba
a8a11cdead
[CodingStyle] Fix extra space on no extra import ( #5777 )
2021-03-05 01:16:22 +01:00
Tomas Votruba
aa36ff4a9b
[Transform] Add NativeTestCaseRector ( #5765 )
2021-03-03 23:10:25 +00:00
Tomas Votruba
a63b232eca
cleanup ( #5763 )
2021-03-03 21:51:04 +00:00
Tomas Votruba
382f146eaf
Merge CoreRectorInterface ( #5762 )
2021-03-03 22:28:27 +01:00
Tomas Votruba
c1dab30664
[MockistaToMockery] Drop as mockista is completely dead package ( #5758 )
2021-03-03 18:40:45 +01:00
Tomas Votruba
c559114715
remove stub loader where not needed ( #5757 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-03 17:15:12 +00:00
Tomas Votruba
0a7ce80f4f
[Renaming] Fix importing of just renamed function ( #5755 )
...
Co-authored-by: Michal Lulco <lulco@efabrica.sk>
2021-03-03 12:54:03 +00:00
Tomas Votruba
9f96242e8a
[TypeDeclaration] Remove AbstractTypeDeclarationRector ( #5753 )
2021-03-03 13:27:16 +01:00
Tomas Votruba
516b4b94fa
[Defluent] Remove AbstractFluentChainMethodCallRector ( #5751 )
2021-03-03 12:57:04 +01:00
Tomas Votruba
98f4554ba2
[Symfony] Remove AbstractToConstructorInjectionRector ( #5749 )
2021-03-03 11:57:11 +01:00
Abdul Malik Ikhsan
5aa715bb2f
[Symfony4] Handle Ternary with null if in ConsoleExecuteReturnIntRector ( #5747 )
2021-03-03 10:35:32 +00:00
Tomas Votruba
8cd5d86c03
[Nette] Remove AbstractWithFunctionToNetteUtilsStringsRector ( #5746 )
2021-03-03 11:30:17 +01:00
Abdul Malik Ikhsan
8430a8d73a
[Symfony4] Skip ConsoleExecuteReturnIntRector on ternary returns number ( #5735 )
2021-03-03 11:24:17 +01:00
Tomas Votruba
92f2c5b3a6
[Nette] Remove AbstractWithFunctionToNetteUtilsStringsRector ( #5742 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-03 09:40:03 +00:00
Abdul Malik Ikhsan
abdc91606d
[Privatization] Skip PrivatizeLocalOnlyMethodRector on use Symfony Route Attribute ( #5737 )
...
Co-authored-by: Stephan Vierkant <stephan@vierkant.net>
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-03 10:33:46 +01:00
Abdul Malik Ikhsan
ef6ad7d063
[Naming] Skip UnderscoreToCamelCaseLocalVariableNameRector on used next/prev assign var as ArrayDimFetch ( #5741 )
...
Co-authored-by: Alexey Kopytko <alexey@kopytko.com>
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-03 10:32:46 +01:00
Tomas Votruba
b7b6725364
remove abstract ( #5736 )
2021-03-03 08:49:57 +00:00
Tomas Votruba
3673e2182c
[StaticReflection] Add OptimizedDirectorySourceLocator to speedup directory analysis ( #5727 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-02 23:42:53 +00:00
TomasVotruba
c6bf799da4
simplify complexity
2021-03-02 14:44:18 +01:00
Tomas Votruba
d5bf66f9cd
[CI] run rules dir by dir to identify static reflection weak sposts ( #5720 )
...
* [CI] run rules dir by dir to identify static reflection weak sposts
* [ci-review] Rector Rectify
* consistency
* remove unused property
* add data provider test fixture
* add InvertedIfFactory to lower complexity
* [DeadCode] Skip unused public method if data provider
* misc
* [DeadCode] Do not remove class method if required by parent ocntract
* make use of ContextAnalyzer to find the loop
* narrow dirs one level
* narrow packages
* narrow
* use directly
* narrow
* correct constant name to keep BC
* bump deps
* add version_compare to removed extra params, just to be sure
* do not return function node on unchanged name
* narrow
* add support for multiple variants
* widen
* remove double check [skip ci]
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-02 14:43:36 +01:00
Abdul Malik Ikhsan
4758dad9b1
[Naming] Handle UnderscoreToCamelCaseLocalVariableNameRector in used in next and previous assign variable ( #5718 )
...
* Fixture for UnderscoreToCamelCaseLocalVariableNameRector
See #5715
* try
* fixture
* Closes #5716 Fixes #5715
* final touch
* [ci-review] Rector Rectify
Co-authored-by: Alexey Kopytko <alexey@kopytko.com>
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-03-01 17:45:54 +01:00
Tomas Votruba
05788745fd
[Downgrade] Remove excessive abstract class inheritance, use single service ( #5717 )
2021-03-01 12:10:50 +00:00
Tomas Votruba
47743269e8
Removing parent classes ( #5714 )
2021-03-01 02:28:35 +01:00
Tomas Votruba
da5f4a08c8
remove unmatched errors + require string in object types to avoid prefixing of generics objects ( #5713 )
2021-03-01 00:56:08 +00:00
addshore
b14ba760e9
[TypeDeclaration] Fixes for array dataProviders with multiple types ( #5659 )
...
More changes to PHPUnitDataProviderParamTypeInferer which I think
brings this to completeness in terms of what we want to expect.
2021-03-01 01:46:19 +01:00
Tomas Votruba
8c3443b036
[DX] Removing more parent abstract circular classes ( #5709 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-28 15:16:17 +00:00
Abdul Malik Ikhsan
a62bb98fe9
[EarlyReturn] Handle Return Parent next if on ChangeAndIfToEarlyReturnRector ( #5711 )
...
* Add failing test fixture for ChangeAndIfToEarlyReturnRector
# Failing Test for ChangeAndIfToEarlyReturnRector
Based on https://getrector.org/demo/aef6b329-49b5-4f27-b23e-9e879a0e2e0b
* Closes #5707
* phpstan
* move find boolean and conditions to NodeRepository
* final touch
Co-authored-by: Markus Staab <maggus.staab@googlemail.com>
2021-02-28 16:07:12 +01:00
Abdul Malik Ikhsan
df101bcbb0
[EarlyReturn] Handle Always return on ChangeAndIfToEarlyReturnRector ( #5706 )
2021-02-28 13:59:46 +01:00
Tomas Votruba
d737f82d3c
[DX] Add forbidden parent classes ( #5705 )
2021-02-28 13:53:28 +01:00