Commit Graph

799 Commits

Author SHA1 Message Date
Tomas Votruba
23bf1ca771
static fixes (#578) 2021-08-02 19:24:42 +00:00
Tomas Votruba
b3480900f3
[CodingStyle] Remove YieldClassMethodToArrayClassMethodRector, rather PHPStorm job (#576)
Co-authored-by: GitHub Action <action@github.com>
2021-08-02 17:39:36 +00:00
Abdul Malik Ikhsan
424289e736
[PHPStan] Clean up PHPStan ignore errors (#568) 2021-08-01 11:18:01 +00:00
Markus Staab
687a77765f
Added MemoryCacheStorage and use it in ChangedFilesDetectorTest (#525)
Co-authored-by: Markus Staab <markus.staab@redaxo.de>
2021-07-28 08:53:49 +02:00
Abdul Malik Ikhsan
a7f111e201
[PHPStan] Clean up PHPStan ignore error messages (#530) 2021-07-28 04:28:25 +00:00
Markus Staab
6478ec1c41
Sync FileCacheStorage with changes from phpstan-src (#498)
* perf optimize FileCacheStorage

* sync FIleCacheStorage impl with upstream phpstan

* update comment

* Update FileCacheStorage.php

* use Rector\Caching\ValueObject\CacheItem

* fix phpstan: use CachingException

* fix phpstan: use smartFileSystem

* re-added nearly everything again

* Update FileCacheStorage.php

* remove String::substring()

* Update FileCacheStorage.php

* ignore phpstan errors

* fix path

* Update phpstan.neon

Co-authored-by: Markus Staab <m.staab@complex-it.de>
2021-07-26 15:16:10 +02:00
Tomas Votruba
923bb72983
[Naming] Remove MakeBoolPropertyRespectIsHasWasMethodNamingRector, not reliable and rather PHPStan scope (#511) 2021-07-25 16:47:01 +00:00
Abdul Malik Ikhsan
875156d6d0
[PHPStan] Clean up PHPStan ignore error messages (#508) 2021-07-25 12:10:26 +00:00
Tomas Votruba
dfbd366b74
[Transform] Add MethodCallToMethodCallRector (#505)
Co-authored-by: GitHub Action <action@github.com>
2021-07-25 13:02:20 +02:00
Abdul Malik Ikhsan
93add0f6c9
[TypeDeclaration] Return null when $classLike is null on AllAssignNodePropertyTypeInferer::inferProperty() (#504)
Co-authored-by: GitHub Action <action@github.com>
2021-07-25 12:48:53 +02:00
Tomas Votruba
9d51f3c47f
[Naming] Fix imported trait names (#500) 2021-07-23 16:32:29 +02:00
Tomas Votruba
083d68eb93
[PHP 8.1] Add FinalizePublicClassConstantRector + downgrade alternative (#490)
* bump to nikic/php-parser 4.12

* bump to stable typo3-rector

* [PHP 8.1] Add FinalizePublicClassConstantRector

* [DowngradePhp81] Add DowngradeFinalizePublicClassConstantRector

* ignore Comparator from downgrade in myclabs/enum

* add AccessoryNonEmptyStringTypeMapper

* [ci-review] Rector Rectify

* narrow non-empty string to string type

Co-authored-by: GitHub Action <action@github.com>
2021-07-22 23:34:25 +02:00
Tomas Votruba
bba606c609
Fix alias object imports (#480) 2021-07-21 14:13:06 +00:00
Tomas Votruba
24a32dfefb
Fix docs double import (#478) 2021-07-21 15:37:24 +02:00
Abdul Malik Ikhsan
7427f6df2a
[DowngradePhp80] Allow FuncCall on DowngradeNamedArgumentRector (#466)
Co-authored-by: GitHub Action <action@github.com>
2021-07-20 22:48:41 +02:00
Tomas Votruba
d3f814ca27 cleanup 2021-07-17 19:14:37 +02:00
Tomas Votruba
294bea2d18
[FileProcessor] Run untill the file is fixed completelly (#432)
* try file doule run

* improve test fixtures by removed old class names

* remove ValueObjectWrapArgRector, not very useful

* [CodeQualityStrict] Remove VarInlineAnnotationToAssertRector, way too strict and unreliable

* [CodeQualityStrict] Remove ParamTypeToAssertTypeRector, way too strict and better union types

* improve DowngradeStripTagsCallWithArrayRector on downgrade

* correct NormalizeNamespaceByPSR4ComposerAutoloadRector

* decouple UndefinedVariableResolver

* work in rogres on assign array

* [PHP 7.1] Improve AssignArrayToStringRector to work with assign node directly
2021-07-14 20:51:35 +02:00
Tomas Votruba
0c709dfac7
Refactor node removing to phpdoc node traverser (#405)
Co-authored-by: GitHub Action <action@github.com>
2021-07-08 15:28:06 +00:00
Abdul Malik Ikhsan
20153a915b
[TypeDeclaration] Skip mixed union return on ReturnTypeDeclarationRector (#393)
Co-authored-by: GitHub Action <action@github.com>
2021-07-07 02:10:47 +02:00
Tomas Votruba
a9b1bbba88
[PHP 8.0] Make Downgrade widening union depend on ClassMethod, the narrow scope (#375)
Co-authored-by: GitHub Action <action@github.com>
2021-07-04 18:11:13 +00:00
Tomas Votruba
2a0cae5507
Make progress bar reflect number of processed files + process file by file in series (#362)
* use file-native progress bar count

* singularize file processor due to changed process order

* try PR in typo3 with contract update

* improve package tests

* cleanup
2021-07-02 22:45:25 +02:00
Tomas Votruba
7c88f7c814
Re-use PhpDocNodeByTypeFinder (#353) 2021-07-01 14:33:18 +00:00
Tomas Votruba
8733e7335f
[PHP 8.0] Add support for nested annotation to attributes (#342) 2021-06-30 21:39:28 +00:00
Tomas Votruba
5282793145
Add enums (#326)
Co-authored-by: GitHub Action <action@github.com>
2021-06-28 23:07:40 +02:00
Tomas Votruba
4f4dce928e
Improve reflection for Variadic analyzer (#310) 2021-06-27 13:55:32 +00:00
Tomas Votruba
d808426e71
[Naming] Add CLASS_MAP_FILES option + fix missing about-to-be-renamed renamed classes with custom SourceLocator (#303) 2021-06-26 20:19:18 +02:00
Tomas Votruba
4f619aae72
NodeRepository usage cleanup (#287) 2021-06-25 00:14:17 +02:00
Tomas Votruba
b028d5633a
Remove NodeRepository dependency on ChangeReadOnlyPropertyWithDefaultValueToConstantRector (#281) 2021-06-24 09:56:29 +00:00
Tomas Votruba
29e9bf5610
Cleaning up NodeRepository dependency (#280)
Co-authored-by: GitHub Action <action@github.com>
2021-06-24 08:11:14 +00:00
Tomas Votruba
83efecea14
[Parallel] Make DowngradeNamedArgumentRector use reflection over nodes (#277)
* cleanup

* make DowngradeNamedArgumentRector use reflection over nodes

* [ci-review] Rector Rectify

Co-authored-by: GitHub Action <action@github.com>
2021-06-23 17:08:36 +02:00
Tomas Votruba
725c7c92b9
[Configuration] Move from service-juggling to cleaner value object (#266)
Co-authored-by: GitHub Action <action@github.com>
2021-06-22 18:59:21 +00:00
Tomas Votruba
27c2c736e3
misc (#272) 2021-06-22 17:16:19 +00:00
Abdul Malik Ikhsan
a41a5ba6b6
[PHPStan] Clean up ignore errors in phpstan.neon (#240) 2021-06-17 14:48:51 +00:00
Markus Staab
64cea0afd6
DX: Report more precise errors in VerifyRectorServiceExistsCompilerPass (#97) 2021-06-15 01:08:04 +02:00
Abdul Malik Ikhsan
7716d176c9
Clean up phpstan ignore error mask (#210)
* Clean up phpstan ignore error mask

* fix phpstan notice

* fix

* clean up

* fix
2021-06-12 15:59:22 +00:00
Robin Richtsfeld
7bbbed11e7
Test: EncapsedStringsToSprintfRector + RemoveDeadInstanceOfRector (#208) 2021-06-12 08:29:20 +02:00
Tomas Votruba
ac81e98fbf
move from nette/caching to own cache based on PHPStan (#202) 2021-06-11 10:39:28 +00:00
Abdul Malik Ikhsan
a698905660
[Php 8] Enable ClassOnObjectRector (#193)
Co-authored-by: GitHub Action <action@github.com>
2021-06-10 13:30:14 +02:00
Tomas Votruba
1a3afef04d
PHPStan updated and static fixes (#192) 2021-06-10 10:33:49 +00:00
Abdul Malik Ikhsan
c07fc8cbcd
[Php80] Do not remove array<typed> on UnionTypesRector (#179)
Co-authored-by: GitHub Action <action@github.com>
2021-06-08 14:50:27 +02:00
Sebastian Schreiber
ac7666a4c9
[FEATURE] Use OutputFormatter for show command (#147) 2021-06-04 22:09:20 +02:00
Abdul Malik Ikhsan
6f7cd6ee39
[Core] Fix ConfigurableCallValuesCollectingPhpFileLoader::import() $sourceResource type (#140)
* [Core] Fix ConfigurableCallValuesCollectingPhpFileLoader::import() $sourceResource type

* phpstan

* fix
2021-06-02 01:58:41 +00:00
Tomas Votruba
f7e9986835
[PHP 8.0] Add downgrade for str_starts_with() (#126) 2021-05-30 10:02:38 +00:00
Tomas Votruba
b90952fdeb
Let Rector upgrade itself to PHP 8 🤖😇 (#123) 2021-05-30 00:00:30 +02:00
Tomas Votruba
e539072713
[PHP 8.0] Add DoctrineAnnotationClassToAttributeRector (#78) 2021-05-20 22:52:07 +00:00
Abdul Malik Ikhsan
ce7bdaa7d0
[DeadCode] Handle native function call not exists in RemoveUnusedPrivatePropertyRector (#72)
* [DeadCode] Handle native function call not exists in RemoveUnusedPrivatePropertyRector

* phpstan

* [ci-review] Rector Rectify

Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-05-19 13:49:26 +02:00
Tomas Votruba
92358f7799
[DeadCode] Fix remove dead stmt Rector (#65)
Co-authored-by: Sebastian Schreiber <me@schreibersebastian.de>
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-05-17 23:40:21 +00:00
Tomas Votruba
919bb98f90
Infinity loop check #2 (#54) 2021-05-16 20:23:57 +00:00
Tomas Votruba
a60e3ac320
warn about infinite loop node modification (#51) 2021-05-16 19:26:37 +01:00
Tomas Votruba
fa8e59708b
Use local version resolver (#36) 2021-05-14 21:52:30 +00:00