Tomas Votruba
5201e949a1
[PHPStanExtensions] Add ForbiddenMethodCallOnTypeRule + move from docComment and Comments to PhpDocInfo ( #4780 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-05 00:22:12 +01:00
Leonardo Losoviz
5257f3ae3e
Downgrade PHP 7.4 contravariant argument type ( #4770 )
...
Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
2020-12-04 12:30:37 +01:00
Leonardo Losoviz
1bb4e06fd8
Downgrade PHP 7.4 Covariant return types - Handle also interfaces ( #4774 )
2020-12-04 12:28:32 +01:00
github-actions[bot]
e85f0b158d
[automated] Apply Coding Standard ( #4768 )
...
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2020-12-04 01:49:50 +01:00
Tomas Votruba
09f17a7b64
[Downgrade] [PHP 8.0] Add DowngradePropertyPromotionToConstructorPropertyAssignRector ( #4762 )
...
* [Downgrade] [PHP 8.0] Add DowngradePropertyPromotionToConstructorPropertyAssignRector
* fix parent
* various fixes for PHP 8.0 tests
* [ci-review] Rector Rectify
* Update rules/downgrade-php80/tests/Rector/Class_/DowngradePropertyPromotionToConstructorPropertyAssignRector/DowngradePropertyPromotionToConstructorPropertyAssignRectorTest.php
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-03 13:27:24 +00:00
Michal Lulco
1f5876ed28
Added some missing Nette 3.0 tasks ( #4764 )
2020-12-03 13:27:12 +00:00
Leonardo Losoviz
4bf25404e1
Added rule to set ( #4758 )
2020-12-03 09:31:13 +01:00
Markus Staab
38c0ebda75
remove double **
glob to speedup bootstrapping ( #4743 )
2020-12-01 22:46:05 +01:00
Tomas Votruba
2030badc19
[PHP 8.0] Add nette utils strings replace, static fixes ( #4741 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-01 14:52:24 +01:00
Tomas Votruba
79f3611dc9
remove ci-detector, make no-progress-bar api compatible with other CI tools ( #4734 )
2020-11-29 18:37:13 +01:00
Tomas Votruba
d962e3f6b0
[Downgrade] Add composer platform check ( #4721 )
2020-11-28 00:16:19 +01:00
Tomas Votruba
377c734975
drop old compiler ( #4716 )
2020-11-27 17:54:14 +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
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
Abdul Malik Ikhsan
69d317f31c
[NetteCodeQuality] Register SubstrMinusToStringEndsWithRector to nette-code-quality config set ( #4695 )
2020-11-26 16:37:25 +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
Tomas Votruba
6eb7ad40a1
use explicit in service definitions ( #4674 )
2020-11-23 14:10:13 +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
da56d5dbb8
fix Request class
2020-11-20 00:32:15 +00:00
Tomas Votruba
26b71cce1d
[Laravel] Improve static to DI set ( #4662 )
2020-11-20 01:26:04 +01: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
Norbert Orzechowicz
05688bd36b
[Downgrade PHP 7.1] Class constant visibility ( #4633 )
2020-11-17 11:45:31 +01: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
5e344c7920
[PHPUnit] Add AssertSameTrueFalseToAssertTrueFalseRector ( #4614 )
2020-11-15 15:09:24 +00:00
Tomas Votruba
aef5b580a6
[PHPUnit 8.0] Replace confusing ReplaceAssertArraySubsetRector with doms plug and play approach ( #4611 )
2020-11-15 13:30:43 +00:00
Tomas Votruba
2a2c49d4ae
[PHPUnit] Add ConstructClassMethodToSetUpTestCaseRector ( #4603 )
...
* [CI] enable automated changelog regenerate
* [CI] drop generate docs, already part of PRs
* [PHPUnit] Add ConstructClassMethodToSetUpTestCaseRector
* make use of SetUpClassMethodFactory
2020-11-13 20:32:18 +00: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
a4a8f57eab
laravel call on static ( #4593 )
...
* add non-static call too
* laravel - add select/select one new param
* [ci-review] Apply coding standards
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-12 22:19:55 +00:00
Tomas Votruba
4318df9c17
[Laravel] Add AddGuardToLoginEventRector ( #4591 )
...
* [Laravel] Add AddGuardToLoginEventRector
* [CI] decouple daily_pull_requests
2020-11-12 21:35:25 +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
Abdul Malik Ikhsan
657a21ba54
[Doctrine] Fixes #4566 Rename ServiceEntityRepositoryConstructorToDependencyInjectionWithRepositoryPropertyRector to ServiceEntityRepositoryParentCallToDIRector ( #4587 )
2020-11-12 16:53:11 +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
Tomas Votruba
3940e42d25
rector update
2020-11-05 02:01:47 +01: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
44864580a0
[Nette 3.0] Register ConvertAddUploadWithThirdArgumentTrueToAddMultiUploadRector to nette-30 config set ( #4552 )
2020-11-04 05:27:33 +00:00
Tomas Votruba
297ec316af
move suffix filesystem 3 ( #4540 )
2020-11-01 21:31:13 +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
Mark Story
4d2a0e731d
Start ruleset for CakePHP 4.2 ( #4526 )
2020-10-31 20:23:33 +01: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
Tommy Quissens
3bf107594e
[Downgrade PHP 7.3] Flexible Heredoc syntax ( #4272 )
2020-10-31 12:39:51 +01: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
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
Tomas Votruba
44b27f779e
[EarlyReturn] Decouple new set ( #4490 )
...
* [set] decouple new code-quality-strict
* decopule early-return set [closes #4464 ]
* [docker] drop prestissimo, as composer v2 does not need it
* [ci] move coding standard to ci_review
* [ci] try to run rector-ci on contributors
2020-10-27 13:47:37 +00:00