Tomas Votruba
abf9ced755
add FQNize same-namespace test
2019-09-15 21:48:17 +02:00
Tomas Votruba
7cf7248949
add AbstractGenericRectorTestCase
2019-09-15 20:27:32 +02:00
Tomas Votruba
ce332b4e65
add AbstractFileSystemRectorTestCase + test
2019-09-15 18:07:16 +02:00
Tomas Votruba
2244dad326
[tests] add PhpVersionFeature value object + fix public of protected function
2019-09-15 16:37:38 +02:00
Tomas Votruba
6ef6f073b6
[tests] switch testFiles to data providers
2019-09-12 10:18:26 +02:00
Tomas Votruba
6f983ad302
improve getByType()
2019-09-11 20:12:09 +02:00
Tomas Votruba
2c3d2616c6
improve class rename in doc blocks
2019-09-11 16:02:35 +02:00
Tomas Votruba
056b0bbff9
fixing import rectors
2019-09-11 13:00:51 +02:00
Tomas Votruba
622b6c1460
migrate TypeInferers to PHPStan object types
2019-09-10 20:40:43 +02:00
Tomas Votruba
82efb89940
use object types over strings
2019-09-06 12:29:55 +02:00
Tomas Votruba
79ffad4a0b
add @see annotations
2019-09-03 14:05:21 +02:00
Tomas Votruba
1fdeffe2e1
fix test classes names
2019-09-03 14:02:42 +02:00
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