Tomas Votruba
382f146eaf
Merge CoreRectorInterface ( #5762 )
2021-03-03 22:28:27 +01:00
Tomas Votruba
bfa5416077
drop AbstactCommand, inline ( #5761 )
2021-03-03 19:34:32 +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
516b4b94fa
[Defluent] Remove AbstractFluentChainMethodCallRector ( #5751 )
2021-03-03 12:57:04 +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
Tomas Votruba
11dab764e6
[PHPStanStaticTypeMapperChecker] Drop as very limited testing benefit, overly protective ( #5721 )
2021-03-02 11:22:49 +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
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
Tomas Votruba
d737f82d3c
[DX] Add forbidden parent classes ( #5705 )
2021-02-28 13:53:28 +01:00
Tomas Votruba
4909e63a1d
Make use of static reflection from PHPStan ( #5665 )
...
* break test without autoload
* PHPStanServiceFactory - add tests directory as analysed paths
* use ReflectionProvider instead of class_exists
* use native reflections for annotation reader
* use native class and method reflections
* add RectorBetterReflectionSourceLocatorFactory
* add DynamicSourceLocator that is shared by PHPStan and Rector
* use ReflectoinProvider instead of class_exists()
* resolve native ClassMethodReflection
* make AnonymousFunctionFactory use reflection
* [DowngradePHP74] Improve DowngradeCovariantReturnTypeRector
* phsptan: avoid ClassReflection
* ProcessCommand: add file infos to source locator
* [DeadCode] Skip RemoveUnusedPublicMethodRector for test
* remove autolaod from tests
* misc
* remove is_a()
* [CI] enable only few dirs to avoid fails
* misc
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-28 08:47:48 +01:00
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
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
Tomas Votruba
c609697f14
[TypeDeclarationStrict] Add AddMethodCallBasedStrictParamTypeRector ( #5580 )
2021-02-17 16:40:29 +01:00
Tomas Votruba
651573a58f
[TypeDeclaration] Add ReturnTypeFromStrictTypedCallRector ( #5573 )
2021-02-16 16:12:37 +00:00
Tomas Votruba
1d80ef3df6
[TypeDeclaration] Add external types to ParamTypeFromStrictTypedPropertyRector ( #5560 )
2021-02-15 19:31:53 +00: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
cd5cc8e12e
[Nette] Add render support to TemplateMagicAssignToExplicitVariableArrayRector, skip render() calls where missing template, now handled by another rule ( #5532 )
2021-02-13 17:56:58 +00: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
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
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
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
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
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
Abdul Malik Ikhsan
4aea155212
[PHPStan] PHPStan ignore errors clean up ( #5446 )
2021-02-07 19:24:50 +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
aa284fe870
[CodeQuality] Reduce ForToForeachRector complexity ( #5421 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-05 12:36:42 +01:00
Abdul Malik Ikhsan
51a14cc28f
[Renaming] Do not update target new namespace exists on RenameClassRector ( #5416 )
2021-02-03 22:30:40 +01:00
TomasVotruba
5ff1d911a3
fix typo in phsptan.neon
2021-02-01 00:31:33 +01:00
TomasVotruba
9b3c4fca20
use constants fix
2021-01-31 21:06:14 +01:00
Tomas Votruba
e2757242be
Various stabilizations ( #5381 )
2021-01-30 20:30:37 +00:00
Tomas Votruba
c8da4517ec
drop addBareTag() method ( #5379 )
2021-01-30 18:12:24 +00:00
Tomas Votruba
e1310abebb
[Nette 3.0] Add #[Inject] attribute ( #5376 )
2021-01-30 15:06:43 +00:00
Tomas Votruba
f9fdf2caaf
decopule AbstractTemporaryRector that does not requires rule definition ( #5352 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-28 19:52:11 +00:00
Abdul Malik Ikhsan
85af424e23
[PHPStan] Typo fix: Refator -> Refactor ( #5344 )
2021-01-28 16:48:01 +01:00
Abdul Malik Ikhsan
4ce73a2867
[NodeTypeResolver] Handle PropertyFetchTypeResolver on PropertyProperty resolution ( #5334 )
...
Co-authored-by: Vašek Henzl <vasek.henzl@gmail.com>
Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-27 17:00:42 +01:00
Tomas Votruba
00d6c60ab1
[ComposerRector] Remove unused MovePackageToRequireComposerRector and MovePackageToRequireDevComposerRector rules ( #5321 )
2021-01-26 02:51:31 +01:00
Tomas Votruba
e00106ee49
[phpstan] Make ComposerRectorInterface child classes respetc the "ComposerRector" suffix ( #5319 )
2021-01-26 01:32:23 +00:00
Tomas Votruba
94dedf4bb3
[PHP 7.0] Update self in final class ( #5304 )
2021-01-24 20:12:02 +00:00
Tomas Votruba
87072b597d
PHP 7.4 8 typo ( #5290 )
2021-01-22 23:11:10 +00:00
Tomas Votruba
0dc20048ae
Cleanup too detailed order rules + add TypedPropertyFromStrictConstructorRector ( #5288 )
2021-01-22 18:47:02 +00:00
Tomas Votruba
8b6b1a81e8
misc ( #5276 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-21 21:58:26 +01:00
Abdul Malik Ikhsan
bf94f4c420
[Performance] Handle PreslashSimpleFunctionRector on Option::AUTO_IMPORT_NAMES => true ( #5268 )
...
Co-authored-by: Pierre <pierre@pcservice.co.za>
Co-authored-by: rector-bot <tomas@getrector.org>
2021-01-21 14:06:03 +01:00
Tomas Votruba
87494ce3a6
Print only changed docblocks 🎉 🎉 🎉 ( #5251 )
2021-01-20 16:17:59 +00:00