530 Commits

Author SHA1 Message Date
Tomáš Votruba
7dde83880d
Merge pull request #458 from rectorphp/action-inject-to-constructor
Add Action inject to constructor Rector
2018-05-05 16:21:45 +01:00
Tomas Votruba
9b6dc41729 make property adding work 2018-05-05 10:54:37 +01:00
Tomas Votruba
a15c177a73 ActionInjectionToConstructorInjectionRector prototype 2018-05-05 10:33:11 +01:00
Tomas Votruba
59f7b9c958 hide ArgumentAdderRectorTest test case, resolve in follow-up PR 2018-05-05 01:04:17 +01:00
Tomas Votruba
d3bdac95af add failing case for ArgumentAdderRector 2018-05-05 01:04:16 +01:00
Tomas Votruba
4da74d474b fix test cases 2018-05-05 01:03:04 +01:00
Tomas Votruba
35b13c776c ArgumentDefaultValueReplacerRector - add valid test case 2018-05-05 01:03:04 +01:00
Tomas Votruba
8fab4d9f48 ArgumentDefaultValueReplacerRector - cleanup test config from other Rectors 2018-05-05 01:03:04 +01:00
Tomas Votruba
6642ef8af9 ArgumentAdderRector: rename 'replacement' to 'default_value' 2018-05-05 01:03:04 +01:00
Tomas Votruba
e7dc6bce1c update namespaces as well 2018-05-05 01:03:04 +01:00
Tomas Votruba
d0d940b0b4 split former ArgumentRector test cases to standalone Rectors 2018-05-05 01:03:04 +01:00
Gabriel Caruso
de9fb3cf55 Failing test for #447 2018-05-04 14:05:13 +01:00
Tomas Votruba
294f8317e6 fix empty doc storing on MagicMethodRector 2018-05-04 10:32:38 +01:00
Tomas Votruba
550b9a9535 fix IdentifierRector (regression of php-parser update) 2018-05-02 18:33:15 +02:00
Tomas Votruba
f8a5fc7d55 make test run again 2018-05-02 18:33:15 +02:00
Tomas Votruba
3717f13ec1 separate different cases 2018-05-02 18:33:15 +02:00
Tomas Votruba
77564e1a58 cleanup dead code 2018-05-02 18:33:15 +02:00
Tomas Votruba
96a5b370c6 update empty doc render 2018-05-02 18:33:15 +02:00
Tomas Votruba
49c834f324 fix storing of empty DocBlock 2018-05-02 18:33:15 +02:00
Tomas Votruba
be5b1cc5f2 fix ExceptionAnnotationRector description 2018-05-02 18:33:15 +02:00
Tomáš Votruba
d5561dbfb3
Merge pull request #451 from mssimi/simplify-argument-rector
simplify argument rector
2018-05-02 16:11:25 +02:00
mssimi
4965127652 split argument rector into:
ArgumentAdderRector
ArgumentDefaultValueReplacerRector
ArgumentRemoverRector
2018-05-01 19:31:41 +02:00
mssimi
a97ede05ec fix AssertPropertyExistsRector 2018-04-30 12:03:05 +02:00
mssimi
1b39e32b2d simplify argument rector 2018-04-30 10:34:01 +02:00
Tomas Votruba
9aa21666ad move Bridge related Contracts to Bridge namespace 2018-04-28 23:21:33 +02:00
Tomas Votruba
f32778fe16 typo 2018-04-28 18:52:52 +02:00
Tomas Votruba
f86130cb87 cs split 2018-04-28 18:52:35 +02:00
Tomas Votruba
ff21d6c459 fix ContainerGetToConstructorInjectionRector test 2018-04-28 18:49:05 +02:00
Tomas Votruba
c743b74974 move Kernel test Sourcet to AbstractToConstructorInjectionRectorSource 2018-04-28 18:49:05 +02:00
Tomas Votruba
e5ebe51963 use service instead of manual map 2018-04-28 18:49:05 +02:00
Tomas Votruba
3792dbe9b3 add 2 more failing cases, make sure the class in 'kernel_class' is instance of Kernel 2018-04-28 18:49:05 +02:00
Tomas Votruba
70f03c0101 add invalid configuraiton test 2018-04-28 18:49:05 +02:00
Tomas Votruba
24a86b45e4 use it in other Rector 2018-04-28 18:49:05 +02:00
Tomas Votruba
46b99f06c5 use DefaultServicetypeForNameProvider 2018-04-28 18:49:05 +02:00
mssimi
21a63c99d1 actually missed few things - rename tests 2018-04-28 16:03:16 +02:00
mssimi
d14894cd40 rename ArgumentReplacerRector to ArgumentRector as it is now general 2018-04-28 15:47:26 +02:00
mssimi
5e66c78380 doctrine alias to entity class rector 2018-04-27 20:36:02 +02:00
Tomas Votruba
c3c5b4da6c remove aliasing support 2018-04-27 11:23:47 +02:00
Tomas Votruba
82c212c1fc merge AbstractRepositoryForDoctrineEntityProvider to DefaultDoctrineEntityAndRepositoryMapper 2018-04-26 23:33:46 +02:00
Tomas Votruba
7b976f2b35 move Abstact brige class to Bridge, not a Contract 2018-04-26 23:33:46 +02:00
Tomas Votruba
cd03b803d6 rename EntityForDoctrineRepositoryProvider* to DoctrineEntityAndRepositoryMapper* 2018-04-26 23:33:46 +02:00
Tomas Votruba
2002645c76 remove typehint case 2018-04-26 00:01:23 +02:00
Tomas Votruba
f4f3849792 add old to new typehint case 2018-04-26 00:01:23 +02:00
Tomas Votruba
a0397df9b7 add nullable type 2018-04-26 00:01:23 +02:00
Tomas Votruba
3622daf00a add 2nd case for class and TypeAnalyzer 2018-04-26 00:01:23 +02:00
Tomas Votruba
d0f65cf3f0 tune ReturnTypehintRector 2018-04-26 00:01:23 +02:00
Tomas Votruba
0d91f7f647 init ReturnTypehintRector 2018-04-26 00:01:23 +02:00
Tomas Votruba
fd3d8451f4 apply ArrayToYieldDataProviderRector on packages as well 2018-04-25 23:53:19 +02:00
Tomas Votruba
ddb0c59668 fix DocBlockAnalyzer for removing annotation on empty doc block [closes #430] 2018-04-25 23:53:05 +02:00
Tomas Votruba
7e82089c97 ArrayToYield Rector edge case 2018-04-25 23:52:59 +02:00