Tomas Votruba
04d01ffdfe
add Symfony Validator annotations
2019-08-30 23:08:03 +02:00
Tomas Votruba
2b51b257e1
decouple PhpDocClassRenamer
2019-08-30 22:29:51 +02:00
Tomas Votruba
677e920dbe
[RenameClassRector] Include @ORM, @Assert, @Serializer etc annotations
2019-08-21 18:32:14 +02:00
Tomas Votruba
e8fbc4bc10
relocate RemoveDeadInitializationRector to RemoveNullPropertyInitializationRector
2019-08-21 17:20:12 +02:00
jacekll
4af8773bf9
[DeadCode] Remove null value from property
2019-08-20 00:12:39 +02:00
Tomas Votruba
27b0218b95
skip differnt return in FluentReplaceRector
2019-08-15 00:18:30 +02:00
Tomas Votruba
5b87ecdba9
fix FluentReplaceRector for 3+ method calls
2019-08-14 22:52:26 +02:00
Tomas Votruba
4596d656b7
[CodingStyle] Add ManualJsonStringToJsonEncodeArrayRector
2019-07-24 16:28:32 +02:00
Tomas Votruba
d04b66adef
fix import order
2019-07-14 14:00:41 +02:00
Holtkamp
0c93729d99
Add failing test to demonstrate difference in import order
2019-07-11 23:41:26 +02:00
Tomas Votruba
e5844eb13a
[Generic] Add ServiceGetterToConstructorInjectionRector
2019-07-10 08:50:50 +02:00
Tomas Votruba
da6a3920c1
cleanup
2019-07-09 17:29:04 +02:00
Holtkamp
60eb0fd051
Do not mark injected properties as private as soon as they use constructor-based injection
2019-07-09 14:31:35 +02:00
Jeroen Smit
b8cb084573
Fixed some issues for RemoveZeroAndOneBinaryRector ( #1702 )
...
* Fixed issue where '1 / x' is considered to be equal to 'x'
Fixed issue where '($var + 1)' inside another expression is considered to be equal to '1'
Expanded unit test for ValueResolver
* Made tests more explicit
2019-07-06 22:53:29 +02:00
Tomas Votruba
154a4e4012
Fix ContainerGetToConstructorInjectionRector to add parent::__construct() to commands
2019-07-04 12:37:01 +03:00
Tomas Votruba
3aa8e4952d
[PHP] Add scope limitation to ArgumentAdderRector for 3party non-existing params [ closes #1662 ]
2019-07-02 22:17:02 +02:00
Tomas Votruba
4cec86bbe0
remove preslash of use imports from RenameClassRetor
2019-07-02 22:08:45 +02:00
Tomas Votruba
0d78c02ee6
add polyfil functions features to PHP sets
2019-07-02 18:33:28 +02:00
Tomas Votruba
82a379dc2b
fix InjectAnnotationClassRector for @var case
2019-07-02 17:07:11 +02:00
Tomas Votruba
522fc0ca58
rename level dir to set
2019-06-08 22:41:52 +02:00
Tomas Votruba
1509b720ad
Fix anonymous class method return type resolving [ closes #1566 ]
2019-06-05 17:09:36 +02:00
Tomas Votruba
d94f47b276
[ClassMethod] Add AddMethodParentCallRector
2019-06-05 16:36:19 +02:00
Tomas Votruba
661d2c8e54
fix array indent
2019-05-28 18:27:38 +02:00
Tomas Votruba
cbe0a8b36b
fix deleting file that matches class name
2019-05-24 16:32:47 +02:00
Jan Mikeš
0f8bf6c75a
Failing tests
2019-05-24 11:46:05 +02:00
Tomas Votruba
c0415f9216
do not override printing files with previous stmts if possible
2019-05-23 22:07:25 +02:00
Tomas Votruba
7c6c6aaa45
[Psr4] Add supprot for namespace less MultipleClassFileToPsr4ClassesRector
2019-05-23 08:09:28 +02:00
Tomas Votruba
c71a2e8f81
report deleted/added files in FileSystem Rectors
2019-05-19 09:38:39 +02:00
Tomas Votruba
e2fba5c6fd
[PHP 7.4] Add array spread operator
2019-05-16 01:37:12 +02:00
Tomáš Votruba
2b2928eab9
Merge pull request #1418 from rectorphp/inject-annot
...
[PHP-DI] Add php-di @Inject annotation import
2019-05-12 18:59:45 +02:00
Tomas Votruba
5d73191fa8
decouple JmsInjectAnnotationRector to configurable InjectAnnotationClassRector
2019-05-12 18:02:28 +02:00
Jan Mikeš
31d2ce4d3b
[PSR-4 Split] Split interfaces and traits as well
2019-05-11 00:29:14 +02:00
Jan Mikeš
9958a44ec3
Added support for renaming class and it’s namespace
2019-05-08 13:00:28 +02:00
Thomas Gerbet
68bda32d06
Preserve file permissions when updating a file
...
The change of permissions is not explicitely requested by the user
and is not shown in the dry-run. It makes Rector harder to use when
the sources of a project has some executable scripts.
2019-05-06 21:47:51 +02:00
Tomas Votruba
bac303c52f
remove original file if in different name - in MultipleClassFileToPsr4ClassesRector
2019-05-02 01:32:33 +02:00
Tomas Votruba
c616a0698f
restore test case
2019-04-29 12:58:29 +02:00
Tomas Votruba
1fe23d12c8
merge getRectorClass() and getRectorConfiguration()
2019-04-29 07:36:22 +02:00
Tomas Votruba
7325df340b
composer: bump deps
2019-04-29 06:30:04 +02:00
Tomas Votruba
163392bd9b
coding style
2019-04-29 06:09:00 +02:00
Tomas Votruba
5fa34b0e2d
remove unused test configs
2019-04-29 01:26:03 +02:00
Tomas Votruba
71f1af830c
[tests] Refactor tests to use container just once, if not enforced config
2019-04-29 00:36:52 +02:00
Tomas Votruba
d2e4adb7e5
[tests] decouple FixtureSplitter
2019-04-26 14:08:27 +02:00
Tomas Votruba
9decd6136b
correct name of ambiguous fixture class
2019-04-26 13:57:39 +02:00
Tomas Votruba
7c9df2cefe
rename Attribute to AttributeKey to prevent duplicated names with similar classes in 3rd party project
2019-04-13 14:21:36 +02:00
Tomas Votruba
897f77f2c6
twig-unique
2019-04-05 13:20:27 +02:00
Tomas Votruba
220038d215
improve GetAndSetToMethodCallRector
2019-04-02 23:21:18 +02:00
Tomas Votruba
c5f51e5cb1
[MagicDisclosure] Fix property assign magic call [ closes #1190 ]
2019-04-02 16:31:58 +02:00
Tomas Votruba
3f2f64de22
[DeadCode] Do not remove variable that is re-assigned
2019-03-31 20:13:46 +02:00
Tomas Votruba
82a0fa6fd0
Include expressoin tags to replace name [ closes #1243 ]
2019-03-27 14:54:57 +01:00
Tomas Votruba
a70c0e1c28
add #1242 test case
2019-03-27 14:26:13 +01:00