48 Commits

Author SHA1 Message Date
Tomas Votruba
7ac228c638
[CI] Add type-declaration set (#4089)
* [CI] Add type-declaration set

* [rector] [CI] Add type-declaration set

* [cs] [CI] Add type-declaration set

* skip nullable void

* add anonymous parent/interface support

* refactor MultiExceptionCatchRector to use Catch_ over integers

* type fixes

* fix unoin array type override

* remove unused test cases

* drop overcomplicated InlineValidationRulesToArrayDefinitionRector

* skip assign on var

* [rector] skip assign on var

* [cs] skip assign on var

* [rector] [cs] skip assign on var

* skip assign on var

* fixes

* [rector] fixes

* [cs] fixes

Co-authored-by: rector-bot <tomas@getrector.org>
2020-09-01 17:56:30 +00:00
Tomas Votruba
f8b485305f
Add multiple annotation support on class (#4064)
* add test case for #3230

* position

* add support for multi doc annotations

* [rector] add support for multi doc annotations

* [cs] add support for multi doc annotations

Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-29 23:12:20 +00:00
dobryy
21d0f01383
[DX] TemplateAnnotationToThisRenderRector fixture's namespace issue (#3984) 2020-08-20 13:56:06 +02:00
dobryy
2e7bdca4e2
[DX] Rename namespaces respect node type (#3973) 2020-08-18 17:57:30 +02:00
dobryy
411d76f9a9
[Order] Make OrderPrivateMethodsByUseRector process file in one run u… (#3889)
* [Order] Make OrderPrivateMethodsByUseRector process file in one run using while loop

* [Order] Enable rule in CI

* [rector] [Order] Enable rule in CI

* [cs] [Order] Enable rule in CI

* [Order] Use constant for number of max attempts and throw exception when exceeded.

* [rector] [Order] Use constant for number of max attempts and throw exception when exceeded.

* [cs] [Order] Use constant for number of max attempts and throw exception when exceeded.

Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-05 22:45:36 +02:00
Tomas Votruba
55acb3578a
[MagicDisclosure] Add SetterOnSetterMethodCallToStandaloneAssignRector (#3860)
* [MagicDisclosure] Add MethodCallOnSetterMethodCallToStandaloneAssignRector

* merge ChainMethodCallManipulator to ChainMethodCallNodeAnalyzer for better DX

* [MagicDisclosure] Add in arg defluent

* rebase
2020-08-01 11:41:16 +00:00
dobryy
f37cd4cac3 [Order] Apply rule 2020-07-26 15:11:41 +02:00
TomasVotruba
7ed4cb19c4 simplify config globs 2020-07-25 20:14:28 +02:00
TomasVotruba
6a4792abf4 apply new naming rule 2020-07-19 23:36:10 +02:00
TomasVotruba
0944b75f7e correct namespace in configs 2020-07-18 11:58:17 +02:00
TomasVotruba
7ecfa73ac9 add TemplateAnnotationToThisRenderRector for nested closure 2020-07-17 10:00:12 +02:00
TomasVotruba
0c816d60f8 [config] switch rules config from YAML to PHP 2020-07-16 12:48:54 +02:00
TomasVotruba
836200068b improve template annotation 2020-07-05 21:16:17 +02:00
TomasVotruba
94252d3eb3 [Sensio] Fix nested function scope of return 2020-07-03 17:53:40 +02:00
TomasVotruba
bf8e9c2e2f pass data to argument 2020-07-01 01:20:47 +02:00
TomasVotruba
577011ef68 add return response|null fixture 2020-07-01 01:14:38 +02:00
TomasVotruba
31a019b0d7 add constant return array support 2020-06-30 21:36:24 +02:00
TomasVotruba
59dbe98883 cover return array method 2020-06-30 10:58:45 +02:00
TomasVotruba
cf29b1dacb skip array in call 2020-06-30 02:20:09 +02:00
TomasVotruba
2758fd5339 re-use hasPhpDocTagValueNode() 2020-06-30 02:20:09 +02:00
TomasVotruba
a8a6e7bcad rename file to fileInfo 2020-06-30 01:45:05 +02:00
TomasVotruba
0cb82c2a6f apply new Naming_ 2020-06-30 00:57:38 +02:00
TomasVotruba
e08f834af5 [Symfony] remove template annotatoin if returns response 2020-06-29 14:21:45 +02:00
TomasVotruba
828d8cf67f prevent remove false template 2020-06-29 13:50:36 +02:00
TomasVotruba
3d8205661b make sure only annotatoins is not removed 2020-06-29 03:00:34 +02:00
TomasVotruba
4c4e306c2b add support for union of response and array 2020-06-29 02:24:57 +02:00
TomasVotruba
40a58dbf4c rename TemplateAnnotationRector to TemplateAnnotationToThisRender 2020-06-29 00:30:20 +02:00
TomasVotruba
b4bc085103 decouple PhpDocInfoManipulator 2020-06-29 00:21:00 +02:00
TomasVotruba
c4dfdd0293 add getPhpDocTagValueNode() method 2020-06-29 00:13:46 +02:00
TomasVotruba
058ce1f1ce decopule ThisRenderFactory 2020-06-29 00:04:47 +02:00
TomasVotruba
d8dfc39df1 decouple ReturnTypeDeclarationUpdater 2020-06-28 23:59:33 +02:00
TomasVotruba
bba3327993 merge template annotation rector version to 5 2020-06-28 23:26:45 +02:00
TomasVotruba
7f49658112 change test(string ) to test(SmartFileInfo ) in tests 2020-06-25 20:02:36 +02:00
TomasVotruba
0af401c91a decouple ArrayPartPhpDocTagPrinterTrait 2020-06-16 11:37:43 +02:00
TomasVotruba
77dfc368d1 make sure pre-slashed is handled in prefixed 2020-06-09 11:59:41 +02:00
TomasVotruba
f47408af33 add array|RedirectResponse test to Template Rector 2020-06-09 11:55:12 +02:00
TomasVotruba
5fe6684891 replace annotation type 2020-06-08 23:47:56 +02:00
TomasVotruba
f29deb626f add compact support 2020-06-08 22:42:38 +02:00
TomasVotruba
90e09c1ca9 skip non-public method 2020-06-08 22:05:54 +02:00
TomasVotruba
72c627e1f9 [Sensio] Add RemoveServiceFromSensioRouteRector 2020-06-06 16:07:51 +02:00
TomasVotruba
420fdef26f [Sensio] Add @route migration to Symfony 2020-06-06 15:07:44 +02:00
TomasVotruba
69dfe3cf96 Fix multi-comment malforming 2020-05-05 00:19:45 +02:00
TomasVotruba
05ac65ac83 add = for @Route options separator 2020-05-04 19:53:36 +02:00
TomasVotruba
a952cac41c complete @see annotation, minor improvements 2020-05-03 16:07:56 +02:00
TomasVotruba
5fb73c2309 TagValueNode refactoring 2020-04-29 12:54:26 +02:00
TomasVotruba
8338004d4e test = 2020-03-27 22:53:40 +01:00
TomasVotruba
c00b8d4b75 fix bracket mallform in annotations 2020-03-27 22:51:44 +01:00
TomasVotruba
3e5dd77bb6 move Rector-rule based packages from /packages to /rules 2020-02-11 13:41:37 +01:00