10172 Commits

Author SHA1 Message Date
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
Tomas Votruba
d9dd72cd6c
[DOC] Add more spaces between node code samples (#4271) 2020-09-22 15:46:02 +02:00
Tomas Votruba
278bf8f43a
drop ScreenFile command, not really used or maintained (#4270) 2020-09-22 14:39:09 +02:00
Tomas Votruba
a73fc88add
[Docs] update docs with node examples (#4269) 2020-09-22 11:27:44 +02:00
Abdul Malik Ikhsan
8759d0ee78
[CodingStyle] Bug fix: ReservedKeywordAnalyzer should add _SESSION to NATIVE_VARIABLE_NAMES (#4265)
* Bug fix: ReservedKeywordAnalyzer should add _SESSION to NATIVE_VARIABLE_NAMES

* cs fix
2020-09-21 20:58:55 +00:00
Igor
19f700ba4e
[Naming] Factory to create PropertyRename (#4255)
* [Naming] Use factory to create PropertyRename

* Ignore new phpstan issues

* Move fixture to FixtureBasic to solve CI issue

* fix setUp vs dataProvider race condition

* fix autoload

Co-authored-by: TomasVotruba <tomas.vot@gmail.com>
2020-09-21 20:45:43 +00:00
Marek Šimeček
cace25434f
[Docs] Update node docs with examples how to create them - part 2 (#4261)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-09-21 22:45:35 +02:00
Tomas Votruba
52ccfc0527
[DX] move Nette FileSytem to SmartFileSystem DI (#4262)
* move Nette FileSytem to SmartFileSystem DI

* move Symfony FileSytem to SmartFileSystem

* [ci] run rector diretly, without composer wrap
2020-09-19 09:27:29 +00:00
Igor
52f560a570
[Naming] Decouple conflict resolution (#4253)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-09-19 10:29:39 +02:00
Marek Šimeček
e0cb8c228b
node docs (#4259) 2020-09-18 16:06:24 +02:00
Marek Šimeček
7400aea355
fix rector docs generator sorting issue (#4260) 2020-09-18 16:01:47 +02:00
TomasVotruba
3346419628 update sonar paths 2020-09-18 12:51:16 +02:00
Tomas Votruba
3c67d23c0e
[Docs] Fixup (#4257)
* fix cs

* misc

* [rector] misc

Co-authored-by: rector-bot <tomas@getrector.org>
2020-09-18 10:28:44 +00:00
Marek Šimeček
66bf80f891
changed files detector test (#4256)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-09-18 12:06:01 +02:00
Tomas Votruba
2243583537
[Docs] update docs and type check (#4241) 2020-09-18 11:50:55 +02:00
Marek Šimeček
1c2afb2e56
node name resolver skip on identifier (#4254) 2020-09-18 10:45:22 +02:00