Tomas Votruba
499d452f99
Various improvements ( #4717 )
2020-11-27 21:39:42 +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
Tomas Votruba
947b9383ee
Decouple DowngradeSetList ( #4714 )
2020-11-27 17:14:41 +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
9150af563a
make use symplify/php-doc-parser ( #4703 )
...
* make use Symplify/PhpDocParser
* report line
* remove monorepo-builder, not needed anymore
* use php action 2
* fixup! use php action 2
2020-11-27 12:23:25 +00:00
Tomas Votruba
080e5cbe00
use symplify/skipper ( #4689 )
2020-11-26 23:09:21 +01:00
Tomas Votruba
0993088cda
[SymfonyPhpConfig] Use Symplify package instead + simplify set validation ( #4694 )
...
* [SymfonyPhpConfig] Use Symplify package instead
* [SymfonyPhpConfig] Drop forgotten custom-jobs Rectors
* [CI] simplify set validation
* from inline functions to Static class
* cleanup
* decouple rector.php to allow static analysis and coding standards
2020-11-26 16:44:27 +00: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
131357aac6
[CodingStyle] Fix lowercase misses in importing, decouple ImportSkipper to collector with ClassNameImportSkipVoters ( #4665 )
...
* add import doc block test
* [CodingStyle] Decouple ImportSkipper to ClassNameImportSkipVoters
* drop same short namespace check, not used anywhere
2020-11-20 13:37:53 +00:00
Tomas Votruba
26b71cce1d
[Laravel] Improve static to DI set ( #4662 )
2020-11-20 01:26:04 +01:00
Tomas Votruba
014985e943
[CodingStyle] Add static support to PreferThisOrSelfMethodCallRector ( #4660 )
...
* [CodingStyle] Add static support to PreferThisOrSelfMethodCallRector
* [ci-review] Rector Rectify
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-19 12:37:50 +00:00
github-actions[bot]
a791be06c0
[automated] Apply Coding Standard ( #4657 )
...
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2020-11-19 02:09:31 +01:00
Tomas Votruba
bd5296933d
update SetList with 2 new Laravel sets
2020-11-18 01:54:22 +00:00
Tomas Votruba
870a0f3822
[Laravel 5.8] Add CallOnAppArrayAccessToStandaloneAssignRector, PropertyDeferToDeferrableProviderToRector, MakeTaggedPassedToParameterIterableTypeRector ( #4637 )
...
* [Laravel 5.8] Add remember method
* [Laravel] Add PropertyDeferToDeferrableProviderToRector
* [Laravel] Add CallOnAppArrayAccessToStandaloneAssignRector
* [Laravel] Add MakeTaggedPassedToParameterIterableTypeRector
* [CI] changelog weekly only
* [ci-review] Rector Rectify
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-18 01:22:40 +00:00
Tomas Votruba
e618d3d74f
propagate deps in packages
2020-11-16 23:39:58 +00: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
615f0c4ee4
[composer] allow 8.3.* Symplify deps
2020-11-15 15:16:14 +00:00
Abdul Malik Ikhsan
7203ff0770
[DX] Fixes #4588 Enable PreferThisOrSelfMethodCallRector in rector-ci.php ( #4597 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-13 12:15:33 +01:00
Tomas Votruba
7c3e803416
[Carbon 2] Init ( #4595 )
...
* [Carbon] Init new rules
* add ChangeDiffForHumansArgsRector
* [Carbon] Add ChangeCarbonSingularMethodCallToPluralRector
* [ci-review] Rector Rectify
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-13 00:45:58 +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
aa91f11a3f
[Laravel 5.7] Add ChangeQueryWhereDateValueWithCarbonRector ( #4586 )
...
* [Laravel] Add ChangeQueryWhereDateValueWithCarbonRector
* [ci-review] Rector Rectify
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-12 15:28:50 +00:00
Tomas Votruba
4c6da2c4bf
[Laravel 5.7] Add parent boot rule ( #4580 )
...
* move file to templates, to remove confusion in the root
* use stable symplify
* [Laravel] Add AddParentBootToModelClassMethodRector
* [ci-review] Generate Rector & Nodes documentation
* [ci-review] propagate monorepo dependencies
* [ci-review] Rector Rectify
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-11 17:09:57 +00:00
Krystian Marcisz
a92f4c1e2d
[DoctrineCodeQuality] Remove redundant default values from annotations ( #4542 )
...
* Move duplicated getAttributableItems() method to abstract parent
* Add removeItem() method to AbstractTagValueNode class
* Add RemoveRedundantDefaultAnnotationValuesRector rule with tests
* Link second test case of RemoveRedundantDefaultAnnotationValuesRector
* Add to set and docs
* Rename variable in DoctrineClassAnalyzer::matchDoctrineEntityTagValueNode()
* Remove redundant docblocks in RemoveRedundantDefaultAnnotationValuesRector
* Extract hasItemWithDefaultValue method in RemoveRedundantDefaultAnnotationValuesRector
* Optimize RemoveRedundantDefaultAnnotationValuesRector
* Split rule into two separate: one for Property and one for Class_
* PHP CS Fixer
* PHPStan
2020-11-04 22:51:11 +01:00
Abdul Malik Ikhsan
0cc7b66a1e
[FileSystem] Improve MovedFileWithNodesFactory : SKip if desiredGroupName already inside oldClassName ( #4554 )
2020-11-04 15:55:22 +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
e7c1ded364
fix linter ( #4537 )
2020-11-01 16:57:12 +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
Christopher Davis
341a3221b8
Add a Doctrine DBAL 2.11 Rule Set ( #4517 )
2020-10-31 14:11:04 +01: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
Tomas Votruba
18d2ea2d31
[Nette] Add MoveFinalGetUserToCheckRequirementsClassMethodRector ( #4520 )
...
* [Nette] Add MoveFinalGetUserToCheckRequirementsClassMethodRector
* [Nette] Add MoveFinalGetUserToCheckRequirementsClassMethodRector
* patch final presenter to allow tests
2020-10-31 00:43:54 +00:00
Tomas Votruba
3ed76c6559
[Nette] Add RemoveParentAndNameFromComponentConstructorRector ( #4515 )
...
* [Nette] Add RemoveParentAndNameFromComponentConstructorRector
* add refactorClassMethod()
* add refactorStaticCall()
* add refactorNew() method
* [Nette] Rename AddDatePickerToDateControlRector to AddNextrasDatePickerToDateControlRector
* [ci-review] Rector Rectify
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-30 17:10:17 +00:00
Tomas Votruba
b302e493dd
[SOLID] Add MoveVariableDeclarationNearReferenceRector ( #4410 )
...
* Create test cases
* Create rector
* Add closure to possible parent scopes
* Register in SOLID set
* Document the feature
* fix adding variable in closure
* move MoveVariableDeclarationNearReferenceRector to Assign category, based on getNodeTypes()
* ci: drop phpunit matcher, not much helpful
* ignore for now, many cases to cover
* prepare release
Co-authored-by: Anna Filina <afilina@gmail.com>
2020-10-30 13:25:24 +00:00
Tomas Votruba
dc2047f70a
[TypeDeclaration] Switch from stringy types to PHPStan types ( #4510 )
...
* nette-30 config cleanup
* [TypeDeclaratoin] Move AddReturnTypeDeclarationRector from generic
* add Type support to AddReturnTypeDeclaration
* make AddParamTypeDeclarationRector use PHPStan type objects over strings
* [SymfonyPhpConfig] Add support for nested types
* drop StringTypeToPhpParserNodeMapper
* [ci-review] Rector Rectify
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-30 11:58:35 +00:00
Tomas Votruba
63037fe924
[DynamicTypeAnalysis] Drop for too theoretical content, needs real project to test out ( #4511 )
2020-10-30 00:30:10 +00:00
Tomas Votruba
bc41ba2b2e
phpstan cleanup ( #4509 )
...
* move tag objects to ValueObject namespace
* [ci] temporarily disable weird broken monorepo split, wait for move to github actoins
2020-10-29 23:06:26 +01:00
Tomas Votruba
5d190a3d55
phpstan cleanup config ( #4507 )
2020-10-29 21:34:51 +00:00
Tomas Votruba
91a354c080
[NetteCodeQuality] Fix ChangeFormArrayAccessToAnnotatedControlVariableRector for in-closure ( #4506 )
...
* [NetteCodeQuality] Fix ChangeFormArrayAccessToAnnotatedControlVariableRector for in-closure
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
* fix name
* fix unknown mixed type on fluent
* [ci-review] Rector Rectify
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-29 21:25:35 +00:00
Abdul Malik Ikhsan
a2ae659e0a
[CodeQualityStrict] Enable MoveOutMethodCallInsideIfConditionRector ( #4502 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-29 21:47:12 +01:00
Abdul Malik Ikhsan
449801e1f3
Add regex uri to regex constant ( #4504 )
...
Co-authored-by: Jan Lohage <j2L4e@users.noreply.github.com>
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-29 19:04:33 +01:00
Abdul Malik Ikhsan
9e0b632e4e
[CodeQualityStrict] Add CountArrayToEmptyArrayComparisonRector to CodeQualityStrict ( #4496 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
2020-10-29 09:59:39 +01:00
Raffael Comi
2e44469c94
Return also explicitly mixed types in IdentifierTypeMapper ( #4483 )
2020-10-28 21:51:56 +01:00