10137 Commits

Author SHA1 Message Date
Tomas Votruba
1c8fac5242
Add meta node FileWithoutNamespace (#4355)
* [CakePHP] Promote AppUsesStaticCallToUseStatementRector to File

* [CakePHP] Change ImplicitShortClassNameUseStatementRector to FileWithoutNamespace approach

* [Renaming] Update PseudoNamespaceToNamespaceRector to use FileWithnoutNamespace

* [rector] [Renaming] Update PseudoNamespaceToNamespaceRector to use FileWithnoutNamespace

* [cs] [Renaming] Update PseudoNamespaceToNamespaceRector to use FileWithnoutNamespace

Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-05 08:39:02 +00:00
Tomas Votruba
7e124dffc0
[static] replace string attirbutes with contants + fix require rule (#4354)
* replace string attirbutes with contants

* static fixes

* composer: bump sypmlify

* composer: drop branch alias, not usedp
2020-10-04 22:19:25 +00:00
Igor
635e0292c2
Add missing abstract keyword (#4347)
* Remove CheckRequiredAbstractKeywordForClassNameStartWithAbstractRule related error from ignore

* Ignore new PHPStan errors
2020-10-04 22:41:31 +02:00
Tomas Votruba
8191dca722
add fixture with property @required annotation to attribute (#4353) 2020-10-04 14:33:08 +00:00
Tomas Votruba
5597e57e12
[PHP 8.0] Add importing of Route, fix name to Annotation\Route one (#4352) 2020-10-04 14:24:49 +00:00
Tomas Votruba
08cce4f9d3
[PHP 8.0] Add @route to #[Route] attribute in Symfony 5.2 (#4350)
* move regex link to annotaiton

* improve configs

* [PHP 8.0] Add @Route to #[Route] attribute in Symfony 5.2

* add fully class attribute option

* [rector] add fully class attribute option

* [cs] add fully class attribute option

Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-04 12:53:01 +00:00
Tomas Votruba
d0f65ef609
[PHP 8.0] @Required to #[Required] attribute from Symfony 5.2 (#4348)
* move ClassNodeAnalyzer to core

* README: add daily work focus

* spaces

* [PHP 8.0] Add #[Required] Symfony attribute migration

* add RFC links

* [rector] add RFC links

* [cs] add RFC links

Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-04 11:12:41 +00:00
Abdul Malik Ikhsan
0680e70035
[naming] move UnderscoreToCamelCaseLocalVariableNameRector to Naming Set (#4346) 2020-10-04 12:48:43 +02:00
TomasVotruba
5453ebfc0e skip cs 2020-10-03 22:09:43 +02:00
Igor
24f499c9d8
[Naming] Apply ParamRenamer without conflict resolution for Naming set (#4335) 2020-10-03 21:18:12 +02:00
TomasVotruba
014224f300 change changelog linker from YAML to PHP 2020-10-02 19:15:40 +02:00
TomasVotruba
22605d697f composer: bump symplify deps 2020-10-02 12:45:58 +02:00
Abdul Malik Ikhsan
3ff3e37ecb
[symfony] add AutoWireWithClassNameSuffixForMethodWithRequiredAnnotationRector (#4341)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-02 12:29:18 +02:00
TomasVotruba
4103cbce07 fix cs 2020-10-02 12:07:55 +02:00
Tomas Votruba
fc48903e97
bump phpstan rules (#4342) 2020-10-02 12:01:53 +02:00
TomasVotruba
251789c82c phar: exclude Symplify\ComposerJsonManipulator 2020-10-01 23:50:20 +02:00
Igor
2ef5805850
[Docs] Add missing php opening tag (#4340) 2020-10-01 23:27:55 +02:00
Tomas Votruba
8ae3868a57
[Restoration] Add RestoreFullyQualifiedNameRector (#4336)
* [Restoration] Add RestoreFullyQualifiedNameRector

* update docs

* use service aware test case for PHPStan rules

* improve FullyQualifiedNameMatcher

* cs fixes

* add return doc resolution

* composer: bump to symfony 4.4/5.1
0.8.14
2020-10-01 19:45:29 +00:00
Abdul Malik Ikhsan
ae816c2c3d
Fixes #4337 : Make Option::SKIP works again with ParameterProvider (#4339) 2020-10-01 18:55:10 +02:00
Tomas Votruba
7a5cf0ed5a
[PSR-4] Fix declare for NormalizeNamespaceByPSR4ComposerAutoloadFileSystemRector (#4332) 0.8.13 2020-09-29 21:16:47 +00:00
TomasVotruba
a71d3d2d2b attemps to fix migrify scoping 2020-09-29 20:14:05 +02:00
Tomas Votruba
5414a15492
composer: move tracy from require to require-dev (#4331) 2020-09-29 16:50:18 +00:00
Kerrial Newham
f67369735a
Init command feature (#4329)
* add init command

* update as per CI review

* update as per CI review 2

* update as per CI review 3

* update as per testing command

* update as per CI review
2020-09-29 17:46:21 +02:00
Kerrial Newham
4578e6d849
add init command (#4311) 2020-09-28 23:42:20 +02:00
Igor
6350692b98
[Naming] Move UnderscoreToCamelCaseVariableNameRector to Naming set (#4312) 2020-09-28 22:35:45 +02:00
Igor
ccb086aab7
[Naming] Make UnderscoreToCamelCasePropertyNameRector work with PropertyRenamer (#4283)
Co-authored-by: rector-bot <tomas@getrector.org>
0.8.12
2020-09-28 20:29:37 +02:00
Tomas Votruba
19f83dd2b0
update docs (#4308) 2020-09-28 14:29:21 +02:00
Abdul Malik Ikhsan
72b3a3f738
[coding-style] make UnderscoreToCamelCaseVariableNameRector update @param docblock as well (#4305) 2020-09-28 14:25:58 +02:00
Alister Bulman
8371ecca86
Update example to new-style php80 Attributes Fixes #4306 (#4307)
from the `<<>>` interim style.
2020-09-28 13:36:27 +02:00
JT Smith
219069f29f
Support latest php-parser (#4304) 2020-09-28 01:52:42 +02:00
Igor
7d5ab130fb
[Renaming] Move RenamePropertyRector to appropriate set (#4303) 2020-09-27 23:33:32 +02:00
Abdul Malik Ikhsan
8e58d44acf
[Code Quality] Fixes #4286 Skip ArrayKeyExistsTernaryThenValueToCoalescingRector when else is a not null (#4298) 2020-09-27 22:34:02 +02:00
TomasVotruba
d006788372 drop slam extensions, will be part of symplify 2020-09-25 20:19:53 +02:00
TomasVotruba
b5b7d1055a use never php-parser 2020-09-25 19:15:47 +02:00
TomasVotruba
c7d6dc0bb7 monorepob-builder: add v prefix 2020-09-25 19:15:47 +02:00
TomasVotruba
8a63d40687 monorepob-builder: add v prefix 2020-09-25 19:15:47 +02:00
Abdul Malik Ikhsan
bfbd0ba7c1
[renaming] Fixes #4295 add \ prefix on FQ method call (#4297) 2020-09-25 14:52:39 +02:00
Tomas Votruba
c8386ccc84
bump migrify deps (#4296)
* monorepob-builder: add v prefix

* monorepob-builder: add v prefix

* bump migrify deps
2020-09-25 10:55:11 +00:00
Tomas Votruba
5a35553a2f
[PHP 8.0] Add Annotation to Attribute rule based on php-parser (#4292)
* monorepob-builder: add v prefix

* monorepob-builder: add v prefix

* [PHP 8.0] Add Annotation to Attribute rule based on php-parser

* [rector] [PHP 8.0] Add Annotation to Attribute rule based on php-parser

* [cs] [PHP 8.0] Add Annotation to Attribute rule based on php-parser

Co-authored-by: rector-bot <tomas@getrector.org>
2020-09-25 08:17:36 +00:00
Abdul Malik Ikhsan
b49333d628
Fixes #4290 wrong skip assignment not from parameter in UnderscoreToCamelCaseLocalVariableNameRector (#4293)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-09-25 09:23:30 +02:00
Tomas Votruba
70bf2ea830
[DOCS] Switch DumpRectorCommand from console to string printer (#4281)
* monorepob-builder: add v prefix

* monorepob-builder: add v prefix

* bump symplify

* decouple SymfonyConsole from DumpRectorCommand

* moving to migrify php-config-printer

* regenerate docs

* include rules oerview
2020-09-24 18:54:39 +00:00
Sander Marechal
0ebf4df558
Move ocramius/package-versions to require-dev, fixes #4285 (#4289)
Co-authored-by: Sander Marechal <sander@prezent.nl>
2020-09-24 20:06:24 +02:00
Abdul Malik Ikhsan
26fe7c547c
Add UnderscoreToCamelCaseLocalVariableNameRector to only change local variable name (#4284)
* Add UnderscoreToCamelCaseLocalVariableNameRector to only change local variable name

* revert rector_rules_overview.md

* add param_assign_return fixture

* try check instanceof Return_

* try check instanceof Return_

* implemented handling asssignment with return
2020-09-24 17:45:19 +02:00
Tomas Votruba
7508bd962f
prepare monorepo-builder.php (#4288) 0.8.9 2020-09-24 16:36:48 +02:00
TomasVotruba
8786d212cf compsoer: add relase sripts v0.8.8 2020-09-24 16:31:53 +02:00
TomasVotruba
02fe819743 lock php-parser to prevent uncontrolled issues 2020-09-24 16:31:18 +02:00
Tomas Votruba
d7f90774ee
allow php-parser 4.10 + fixes of args merge change (#4277)
* allow php-parser 4.10 + fixes of args merge change

* use fixed php-parser 4.10.1
2020-09-23 20:22:35 +00:00
Tomas Votruba
c43f611d85
[ci] show rector ci fail (#4280)
* [ci] show rector ci fail

* try --dry-run removal

* [rector] try --dry-run removal

Co-authored-by: rector-bot <tomas@getrector.org>
2020-09-23 11:29:42 +00:00
Tomas Votruba
7aad4bbf2f
[PHPStan] Enable regex constant rule (#4279) 2020-09-23 11:16:40 +02:00
Igor
52f02d8c91
[Naming] Make bool property respect is/has/was naming (#4215) 2020-09-22 20:22:10 +00:00