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
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
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
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
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
Abdul Malik Ikhsan
eecf15dc15
[DeadCode] Add Extra files test for RemoveEmptyAbstractClassRector ( #5598 )
...
Co-authored-by: TomasVotruba <tomas.vot@gmail.com>
2021-02-23 15:28:41 +00:00
Tomas Votruba
362ebbea46
[TypeDeclaration] Add ReturnTypeFromReturnNewRector ( #5624 )
...
Co-authored-by: kaizen-ci <info@kaizen-ci.org>
2021-02-19 12:01:23 +00:00
Tomas Votruba
afdf5839e7
[testing] change provideConfigFileInfo() to provideConfigFilePath() ( #5518 )
2021-02-12 19:19:40 +01:00
Tomas Votruba
63ea75cbf5
[testing] Add update tests feature to AbstractCommunityRectorTestCase ( #5504 )
2021-02-11 11:46:54 +00: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
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
ecbef2bcaa
[Tests] remove getPhpVersion() helped method, use configs instead ( #5477 )
2021-02-09 17:25:16 +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
e04d820bc5
[CodeQuality] Improve CompactToVariablesRector to cover previously defined array ( #5424 )
2021-02-05 12:40:28 +00:00
Tomas Votruba
f1a70bd271
[Removing] Move RemoveInterfacesRector here ( #5361 )
2021-01-29 10:38:59 +00:00
Tomas Votruba
a7550337f0
Add promoted property in PHP 8.0, when adding a ctor dependency ( #5222 )
...
* add PHP 8.0 test
* Add promoted property adding in constructor injection on PHP 8
* update tests to use propert promotion
* fix promoted property adding
* decopule Doctrine registry to manager
* shorter naming
* fix parent ctor completion
* nette promotion fixes
* fixes
* fix property inject
* misc
* misc
2021-01-18 13:09:48 +00:00
Tomas Votruba
6c11a254aa
[SymfonyCodeQuality] Add ExtractAttributeRouteNameConstantsRector ( #5140 )
...
* [SymfonyCodeQuality] Add ExtractAttributeRouteNameConstantsRector
* optimizations
2021-01-11 20:12:10 +00:00
Tomas Votruba
bc0113dbd7
use templates ( #5116 )
2021-01-08 23:30:33 +01:00
Tomas Votruba
d465ec83e2
[DeadCode] Move RecastingRemovalRector from PHPStan set ( #4983 )
...
* [DeadCode] Move RecastingRemovalRector from PHPStan set
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-25 00:22:45 +00:00
Tomas Votruba
aa35633c66
use getService() API call over static ( #4970 )
2020-12-23 21:40:46 +01:00
Tomas Votruba
56dedb1786
static fixes ( #4864 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-12 14:53:10 +01:00
Tomas Votruba
db5e02e724
static fixes ( #4860 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-12 13:08:34 +01:00
Tomas Votruba
d131d804d9
Bump min PHP version to 7.3 ( #4838 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-09 23:25:53 +01:00
Abdul Malik Ikhsan
143164504e
[CodeQuality] Add UnwrapSprintfOneArgumentRector ( #4827 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-09 12:29:01 +01:00
Tomas Votruba
0eb6e29176
drop MinimalVersionChecker, is checked by composer itself ( #4715 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-27 17:32:38 +01:00
Markus Staab
548ab7176d
make sure we don't get a diff in which every line is different ( #4713 )
2020-11-27 17:08:49 +01:00
Tomas Votruba
080e5cbe00
use symplify/skipper ( #4689 )
2020-11-26 23:09:21 +01:00
Tomas Votruba
8e7c4bfc96
[CI] do not push to forks
2020-11-24 21:30:17 +00:00
HDVinnie
3fc5163f01
update: drop migrify/php-config-printer for symplify/php-config-printer ( #4684 )
...
* update: composer.json
- Package migrify/php-config-printer is abandoned. Using symplify/php-config-printer instead.
* update: migrify to symplify
* update: composer.json
Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
2020-11-24 16:14:21 +00:00
Abdul Malik Ikhsan
a38debb672
[DX] Fixes #4205 Change phpversion from string to php constant int type ( #4679 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-24 16:32:49 +01:00
Tomas Votruba
da6d703687
Improve Blade class renames ( #4676 )
...
* [Console] Use single point of command naming
* use blade in process command
* filter out blade templates from PHP files
* make test process blade as non php file
* add failing test
* remove duplicated tests
* rename php to php.inc suffix to make it skip to CI tools
* [ci-review] Rector Rectify
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-23 19:16:48 +00:00
Abdul Malik Ikhsan
715b616ada
[Solid] use Variable node type for for MoveVariableDeclarationNearReferenceRector ( #4670 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-23 11:40:29 +01:00
Tomas Votruba
661b2f0a65
[Symplify 9] Follow up + phpstan rules tidying ( #4625 )
...
* improve static
* improve phpstan rules
* [PHPStanExtensions] Drop CheckCodeSampleBeforeAfterAlwaysDifferentRule, already part of domain in CodeSample
* cleanup
2020-11-16 23:32:24 +00:00
Tomas Votruba
a7705ed0a5
[Symplify 9] First update + switch to RuleDocGenerator ( #4616 )
...
* [composer] bump to Symplify 9
* [Symplify 9] Update phpstan rules
* bump to Symplify 9 BETA2
* update AbstractKernel from Tests to Testing namespace
* decoupling removing node trait
* remove fluent calls
* removing variadic
* [CodingStyle] Improve AnnotateThrowablesRector
* bump deps
* Make use of RuleDocGenerator
* first short
* [DocumentationGenerator] Drop deprecated package, RuleSetGenerator now handles it
* import namespace
* update docs
2020-11-16 17:50:38 +00:00
Tomas Votruba
7e3f8bdafc
[Laravel] Add AddMockConsoleOutputFalseToConsoleTestsRector ( #4589 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-12 21:47:25 +01:00
Tomas Votruba
93b601cef0
merge AstractGenericRectorTestCase and AbstractRectorTestCase ( #4550 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-03 21:39:57 +01:00
Tomas Votruba
42fcff97e3
remove unused file
2020-11-01 21:33:03 +01:00
Tomas Votruba
297ec316af
move suffix filesystem 3 ( #4540 )
2020-11-01 21:31:13 +01:00
Tomas Votruba
c03b66f7cd
move suffix filesystem 2 ( #4529 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-01 16:39:04 +01:00
Tomas Votruba
8542a3bcbc
Move from Filesystem rules to FileNode ( #4528 )
...
* make MoveServicesBySuffixToDirectoryRector with non-filesystem rector
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
* [ci-review] Apply coding standards
* fixup! make MoveServicesBySuffixToDirectoryRector with non-filesystem rector
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-31 21:39:09 +00:00
Tomas Votruba
5147844615
change RenameSpecFileToTestFileRector filesystem to normal one ( #4525 )
2020-10-31 16:20:30 +00:00
Tomas Votruba
0513315056
Change file system approach of MultipleClassFileToPsr4ClassesRector to file without namespace node ( #4522 )
...
* Change file system approach of MultipleClassFileToPsr4ClassesRector to file without namespace node
* update DecoupleClassMethodToOwnClassRector
* [ci] add rebase jobp
* disable fail fast for unit tests
* misc
2020-10-31 12:59:40 +00:00