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
Abdul Malik Ikhsan
1c9cfafdda
[Solid] Fixes #4677 Skip MoveVariableDeclarationNearReferenceRector on multiple usage in Switch -> cases ( #4678 )
2020-11-23 22:23:44 +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
cb57430655
[Renaming] Add renaming support for blade.php templates in Laravel ( #4672 )
...
* [CI] fix monorepo split
* naming, add blade.php suffix
* [Renaming] Add class rename support for laravel blade templates
* skip test fixture
2020-11-23 11:35:42 +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
Abdul Malik Ikhsan
f004f290c7
[Solid] Improve MoveVariableDeclarationNearReferenceRector : skip variable with usage in multiple level ( #4643 )
...
* [Solid] Improve MoveVariableDeclarationNearReferenceRector : skip variabel with usage in multiple level
* function name and var name
* stop calling parent attribute when previous of parent is an Expression with Assign with same variable
* phpstan
* deep up usage
* deeeeep level
* stop while when previous is Expression with Assign same var
* final touch
* [ci-review] Rector Rectify
* keep comment
* cast isFoundNext
* fixed
* separate method
* [ci-review] Rector Rectify
* clean up fixtures
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-18 21:26:54 +00:00
Tomas Votruba
9e49fe97fe
[PSR-4] autoprefix on namespace add ( #4653 )
...
* check
* prepare prefix-name case
* [PSR-4] Fqnize names without name importing
* fixup! [PSR-4] Fqnize names without name importing
* static fixes
* [ci-review] Rector Rectify
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-18 21:25:59 +00:00
Abdul Malik Ikhsan
5989a6c53b
[PHP 7.4] Fixes #4647 Make limit Value in AddLiteralSeparatorToNumberRector configurable ( #4648 )
2020-11-18 21:38:04 +01:00
Tomas Votruba
c71c73340d
[PSR-4] fix case of missing namespace ( #4651 )
2020-11-18 21:37:17 +01:00
Abdul Malik Ikhsan
2d9841594f
[CodingStyle] Skip RemoveDoubleUnderscoreInMethodNameRector on first numeric on new name ( #4645 )
2020-11-18 17:09:42 +01:00
Abdul Malik Ikhsan
1b354f3e59
[CodingStyle] Improve RemoveParamReturnDocblockRector: handle namespaced @param & @return ( #4642 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-18 11:02:10 +01:00
Abdul Malik Ikhsan
d788fd051a
[CodingStyle] Skip RemoveDoubleUnderscoreInMethodNameRector when method name only __ ( #4640 )
2020-11-18 10:57:50 +01:00
Abdul Malik Ikhsan
c58f35a41e
[StrictTypes] Fixes #4429 Add ParamTypeToAssertTypeRector ( #4624 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-18 10:56:51 +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
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
Abdul Malik Ikhsan
4c243e1c9c
[Naming] Fixes #4621 : Skip rename when after rename has numeric in first char ( #4623 )
2020-11-16 13:04:32 +01:00
Abdul Malik Ikhsan
7fcbac3230
[CodeQuality] ForToForeachRector improvement on ArrayDimFetch handling ( #4613 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-15 17:12:48 +01: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
d7d4603218
improve SpecificAssertContainsRector for union type ( #4610 )
2020-11-15 02:41:46 +01:00
Abdul Malik Ikhsan
978087e846
[CodeQuality] Skip ForToForeachRector on assign count is used inside for statements ( #4607 )
...
* Failing fixture for to foreach assign count is used inside for
* Fix skip assign count used inside for statements
* cs fix
* use areNodesEqual()
* phpstan
* method naming
* [ci-review] Rector Rectify
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-14 14:07:38 +00:00
Tomas Votruba
82c9f47447
[Carbon] Add ChangeCarbonSingularMethodCallToPluralRector ( #4596 )
2020-11-14 01:00:35 +01: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
cf298105f0
[PHPUnit] Add class constant reference to ExceptionAnnotationRector ( #4602 )
...
* [PHPUnit] Add class constant reference to ExceptionAnnotationRector
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-13 17:37:01 +00:00
Tomas Votruba
feccfdad63
[PHPUnit] Add maybe string check to SpecificAssertContainsRector ( #4601 )
2020-11-13 16:55:15 +00:00
Abdul Malik Ikhsan
2562a2dcee
[CodingStyle] Fixes #4453 Add RemoveParamReturnDocblockRector ( #4600 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-13 14:58:17 +01: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
Abdul Malik Ikhsan
120e531084
[DeadCode] Fixes #4472 Remove method call on $this ( #4598 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-13 12:14:25 +01:00
Abdul Malik Ikhsan
aae9a54768
[Symfony] Fixes #4583 Skip AbstractToConstructorInjectionRector when service type not found ( #4599 )
2020-11-13 12:13:48 +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
9dbf490a10
add non-static call too ( #4592 )
2020-11-12 22:08:18 +00:00
Tomas Votruba
aba4be85bb
[Laravel] Update compoare sign
2020-11-12 21:45:45 +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
Abdul Malik Ikhsan
3d2c7c30bd
[CodingStyle] Failing test case for cannot change this to self ( #4590 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-12 21:50:36 +01: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
Abdul Malik Ikhsan
75714bb3d6
[CodeQuality] Fixes #4578 Skip ForToForeachRector on complex init ( #4579 )
2020-11-11 17:08:28 +00:00
Abdul Malik Ikhsan
db18c7de19
[PHP 8.0] Improve NullsafeOperatorRector : Check against !== null ( #4572 )
...
* [PHP 8.0] Improve NullsafeOperatorRector : Check against !== null
* [ci-review] Apply coding standards
* [ci-review] Rector Rectify
* phpstan
* try process next only
* not identical process only direct if after assign
* phpstan
* [ci-review] Rector Rectify
* not identical with non-null check
* not identical with non-null check
* add yoda condition
* phpstan
* [ci-review] Apply coding standards
* move check if cond using assign identical/not identical to IfManipulator service
* cs fix
* [ci-review] Rector Rectify
* [ci-review] Apply coding standards
* move NullSafe process to NullsafeManipulator service
* phpstan
* [ci-review] Apply coding standards
* use instanceof check
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-11 11:48:47 +00:00
Abdul Malik Ikhsan
ef442dca03
[PHP 8.0] Improve NullsafeOperatorRector : No need ?-> on very first call ( #4571 )
...
* [PHP 8.0] Improve NullsafeOperatorRector : No need ?-> on very first call
* use bool check is start if
* phpstan
* phpstan and code example update
* [ci-review] Generate Rector & Nodes documentation
* [ci-review] Apply coding standards
* using $isStartIf = true default
* clean up
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-10 10:09:39 +00:00
Abdul Malik Ikhsan
b4fd52021d
[PHP 8.0] Improve NullsafeOperatorRector : Skip no direct usage after if in next statement at last ( #4565 )
...
* [PHP 8.0] Improve NullsafeOperatorRector : Skip no direct usage after if
* [ci-review] Apply coding standards
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-09 13:14:57 +00:00
Ronny López
531275df5b
Fix StrStartsWithRector to allow strpos not identical operation ( #4562 )
2020-11-08 23:35:05 +01:00