Abdul Malik Ikhsan
bb384013c3
[CodeQuality] CodeQuality config set list clean up ( #606 )
...
* [CodeQuality] CodeQuality config set list clean up
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
Co-authored-by: GitHub Action <action@github.com>
2021-08-06 22:01:54 +02:00
Michal Lulco
c2acf79190
Added test for Rectors making additional changes ( #545 )
...
* Added test for Rectors making additional changes
* Fix empty expected content
* fix - added missing parameter
* Moved multiple files change to trait and added docs
* Rewritten test for Update file name by class name
* Separate test using multiple files changed trait
* Separated test
* Created separated test with separated rector
* Fix phpstan
* Changed namespace for dummy rector
2021-08-06 08:39:47 +02:00
Abdul Malik Ikhsan
529eb40360
[DowngradePhp80] Handle both DowngradeTypedPropertyRector and DowngradeMixedTypeDeclarationRector Name parameter ( #591 )
...
* Demonstrate issue with DowngradeMixedTypeDeclarationRector
* Closes #590 Fixes https://github.com/rectorphp/rector/issues/6611
* final touch: better check as already FullyQualified no need convert
* final touch: clean up
Co-authored-by: Brandon Olivares <programmer2188@gmail.com>
2021-08-04 09:23:17 +02:00
Tomas Votruba
9d51f3c47f
[Naming] Fix imported trait names ( #500 )
2021-07-23 16:32:29 +02:00
Tomas Votruba
e3a1f9399b
Fix trait check in ClassManipulator ( #497 )
2021-07-23 12:37:16 +00: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
83419c4376
[CodeQuality] Handle both ExplicitBoolCompareRector + CountArrayToEmptyArrayComparisonRector usage ( #474 )
2021-07-21 10:39:13 +02:00
Abdul Malik Ikhsan
1c76f25259
[Privatization][TypeDeclaration] Invalid return type on use RepeatedLiteralToClassConstantRector + ReturnTypeDeclarationRector ( #457 )
...
* [Privatization][TypeDeclaration] Invalid return type on use RepeatedLiteralToClassConstantRector + ReturnTypeDeclarationRector
* also union type
* happen on auto import
* update fixture
* Fixed 🎉
* phpstan
* phpstan and cs fix
* check has backslash
* check array type
* fallback
* Update rules/TypeDeclaration/TypeAnalyzer/GenericClassStringTypeNormalizer.php
Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
* add failing fixture namespaced return
* try
* auto import check in ReturnTypeInferer as well
* another try
* clean up
* naming
* phpstan
Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
2021-07-19 14:56:42 +07:00
Tomas Votruba
f7ba2752e3
Cleanup ( #438 )
...
* private constant
* remove extra return
* [CodeQualityStrict] Remove MoveOutMethodCallInsideIfConditionRector, very narrow temporary use case - better leave on PHPStan and developers
* bump deps
* [DeadCode] Add RemoveLastReturnRector
* apply rector
2021-07-15 01:07:54 +02:00
Michal Lulco
3255ad72f5
Added factory to create class with public properties ( #435 )
2021-07-14 20:53:39 +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
0293296974
extract UseImportNameMatcher ( #407 )
...
Co-authored-by: GitHub Action <action@github.com>
2021-07-08 15:49:48 +00: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
32c0d7d1b7
[DeadCode][Naming] Handle null start token on use RemoveOverriddenValuesRector & RenameVariableToMatchNewTypeRector ( #398 )
...
Co-authored-by: zingimmick <zingimmick@outlook.com>
2021-07-08 02:08:45 +02:00
Tomas Votruba
ff1ad31d6a
[PHP 7.2] Refactor DowngradeParameterTypeWideningRector to class method ( #380 )
2021-07-05 07:38:01 +00:00
Tomas Votruba
dfbbb02dec
[PHP 8.0] Fix DowngradeNamedArgumentRector named arguments ( #373 )
...
* Fix DowngradeNamedArgumentRector args
* make use of TypeKind enum
* fixup args
* make TypeKind required
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
* require PR link
Co-authored-by: GitHub Action <action@github.com>
2021-07-04 15:05:10 +02:00
Abdul Malik Ikhsan
2451e134c4
Failing test AutoconfigureTag ( #368 )
...
Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
2021-07-03 23:19:25 +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
4b0dd17a24
Fix accidental class rename on docblock imports ( #314 )
2021-06-27 19:52:52 +00: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
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
a41384bc00
Fix doc importing on Doctrine annotation class rename ( #264 )
...
Co-authored-by: GitHub Action <action@github.com>
2021-06-22 10:30:29 +00:00
Robin Richtsfeld
7bbbed11e7
Test: EncapsedStringsToSprintfRector
+ RemoveDeadInstanceOfRector
( #208 )
2021-06-12 08:29:20 +02:00
Abdul Malik Ikhsan
9dea8d8cd8
[DeadCode][CodeQuality] Handle use RemoveDeadInstanceOfRector + SwitchNegatedTernaryRector with if instanceof check ( #201 )
...
Co-authored-by: Robin Richtsfeld <robin.richtsfeld@gmail.com>
2021-06-11 11:29:21 +02:00
Abdul Malik Ikhsan
b64ca4e43f
[Php 8] Enable UnionTypesRector ( #178 )
...
Co-authored-by: GitHub Action <action@github.com>
2021-06-09 00:29:33 +02:00
TomasVotruba
3818dfdbfc
unprefix instanceof in PhpFileLoader.php since Symfony 5.3
2021-06-05 20:42:03 +02:00
Tomas Votruba
f7e9986835
[PHP 8.0] Add downgrade for str_starts_with() ( #126 )
2021-05-30 10:02:38 +00:00
TomasVotruba
4c5f678ca4
fix cs
2021-05-29 19:06:26 +02:00
Markus Staab
ae96c1a308
Skip FormatPerservingPrinterTest on windows ( #109 )
...
file-mod is not a concept on windows, therefore is this test not usefull / will always fail
2021-05-26 12:05:35 +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
a60e3ac320
warn about infinite loop node modification ( #51 )
2021-05-16 19:26:37 +01:00
Tomas Votruba
7483943b21
Move from sets resolver to import for good ( #37 )
2021-05-15 12:24:18 +02:00
Sebastian Schreiber
84bac4a657
[TASK] Remove default method provideConfigFilePath ( #32 )
...
* [TASK] Remove default method provideConfigFilePath
Relates: rectorphp/rector#6415
* [TASK] Implement method provideConfigFilePath
2021-05-14 16:35:51 +01:00
Sebastian Schreiber
1480719b61
[TASK] Take glob pattern for files into account ( #22 )
...
- Closes rectorphp/rector#6376
2021-05-12 12:44:28 +02:00
Tomas Votruba
b3b001a445
[PHP 7.4] Add more typed properties ( #23 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-05-12 12:16:44 +02:00
Tomas Votruba
c62899d062
[PHP 7.4] Use typed properties in tests ( #20 )
2021-05-11 19:27:47 +02:00
TomasVotruba
589ca1199f
do not prefix SymfonyStyle, to keep often-used class untouched
2021-05-08 22:53:51 +02:00
TomasVotruba
a14015dcb0
all works
2021-05-08 22:46:55 +02:00
TomasVotruba
b7e0b28f3f
conflicting test
2021-05-08 22:02:56 +02:00
Tomas Votruba
9efcda0536
[Downgrade Php 7.0] Add other scalar type recast ( #6393 )
2021-05-08 19:41:03 +02:00
Tomas Votruba
7a33e856fd
[Downgrade PHP 7.0] Add string retype on object ( #6390 )
2021-05-08 10:55:30 +00:00
TomasVotruba
94bd7c822b
rename DowngradeTypeDeclarationRector to DowngradeScalarTypeDeclarationRector
2021-05-08 01:34:29 +02:00
Tomas Votruba
b1b5f95ad8
Fix missing stmt on adding a new node ( #6383 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-05-07 19:33:13 +00:00
TomasVotruba
4f8985a30f
update set names
2021-05-06 22:36:00 +02:00
Tomas Votruba
ac82ae6a63
Move from SETS parameter to explicit import() ( #6375 )
2021-05-06 20:06:31 +00:00
Tomas Votruba
ac7a03f800
[php-parser] upgrade to 4.10.5 - add src/constants.php to mimic new PHP 8.1 tokens; update test with unicode ( #6325 )
...
* add src/constants.php to mimic new PHP 8.1 tokens; update test with unicode
* include preload in dev repository too
* include preload function
2021-05-04 14:21:34 +02:00
Abdul Malik Ikhsan
a2bb65c272
[Preload] Fixes root path when rector installed as dependency ( #6324 )
...
* [Preload] Fixes root path when rector installed as dependency
* move to tests bootstrap
* check in prefixed only
2021-05-04 13:49:15 +02:00
Tomas Votruba
cd8be43951
Update text for FileProccessor to use Rector interface contract ( #6289 )
2021-05-02 15:59:16 +00:00