Tomas Votruba
f3783ac164
simplify fixture
2019-10-02 15:18:19 +02:00
Tomas Votruba
b27f7fe797
[CodingStyle] Skip common annotation aliases in RemoveUnusedAliasRector
2019-10-02 15:01:09 +02:00
Dorian Villet
7d2b4dda4b
Add failing test for #1116 .
2019-10-02 12:33:48 +02:00
Dorian Villet
7a06337384
Add tests for #2056 .
2019-10-02 10:53:44 +02:00
Dorian Villet
7e170d5944
ECS fixes.
2019-10-02 09:54:01 +02:00
Tomáš Votruba
f0222eaebf
Merge pull request #2065 from rectorphp/allow-private-ctor-override-for-static-factory
...
[CodingStyle] Allow private ctor override for static factory
2019-10-01 13:44:30 +02:00
Tomas Votruba
4c3799adb3
[CodingStyle] Allow ctor override for PHP 7.2 in MakeInheritedMethodVisibilitySameAsParentRector
2019-09-30 16:57:00 +02:00
Tomáš Votruba
3191a615c8
Add conditional method renaming rector ( #2047 )
...
Add conditional method renaming rector
2019-09-30 09:22:06 +02:00
Tomas Votruba
8c259c8d92
add stubs over mirror class names in tests
2019-09-30 09:12:25 +02:00
Mark Story
018edbe75b
Update RenameMethodCallBasedOnParameterRector based on feedback
2019-09-28 22:56:51 -04:00
Mark Story
31c1bfbe70
Add conditional method renaming rector
...
We have a few renames in CakePHP that are parameter dependent. This
rector lets a method be renamed based on the first parameter value. I've
only supported string values as that is the current requirements.
2019-09-28 22:56:51 -04:00
Tomas Votruba
d02284040b
[PHP 7.1] Skip extra argument removal for parent static call
2019-09-28 20:09:24 +02:00
Tomas Votruba
2cfcd37427
make use of addStmtsToClassMethodIfNotThereYet()
2019-09-28 20:00:11 +02:00
Tomas Votruba
10bb5da273
decouple addStmtsToClassMethodIfNotThereYet() to ClassManipulator
2019-09-28 19:40:25 +02:00
Tomas Votruba
6fbdf5461a
[DoctrineCodeQuality] Initialize collectoins in constructor
2019-09-28 16:02:19 +02:00
Tomáš Votruba
8e442f9fb6
Add post run name imports ( #2052 )
...
Add post run name imports
2019-09-28 14:46:06 +02:00
Tomas Votruba
0b18a193f4
decouple NameImporter
2019-09-28 14:33:41 +02:00
Tomas Votruba
ad3dddfa2e
add auto import names
2019-09-28 14:30:12 +02:00
Tomas Votruba
ed0e2ca0eb
use setParameter()
2019-09-28 14:30:12 +02:00
Tomas Votruba
9ef3801b41
cleanup
2019-09-28 13:18:11 +02:00
Jeroen Herczeg
4b9120c952
Added StrictArraySearchRector - Issue #2009
2019-09-28 00:34:34 +02:00
Tomas Votruba
1202ca2658
allow cs
2019-09-27 22:09:00 +02:00
Tomas Votruba
a1e9a529d6
make tags in-sensitivty
2019-09-27 22:01:57 +02:00
Tomas Votruba
c626a50d94
cleanup + allow various format of imported annotations
2019-09-27 21:45:25 +02:00
Tomas Votruba
0da741a9a3
drop @return type from Iterator in tests
2019-09-27 14:40:09 +02:00
Tomas Votruba
598f228c6d
decouple php doc ast node to factories
2019-09-27 14:40:09 +02:00
Tomas Votruba
ab10145d77
fix missing scope
2019-09-26 16:27:53 +02:00
Tomas Votruba
18ebc3d499
improve cs
2019-09-26 16:27:53 +02:00
Tomas Votruba
1751334845
add UniqueEntity stub, fix nullable name in IndexTagValueNode
2019-09-26 16:03:14 +02:00
Tomas Votruba
e40f610399
fix cs
2019-09-26 15:27:54 +02:00
Tomas Votruba
46412c73ce
[Symfony] Make MakeDispatchFirstArgumentEventRector work with get_class
2019-09-26 13:52:28 +02:00
Tomas Votruba
e4eeb19c45
[CodeQuality] Add RemoveSoleValueSprintfRector
2019-09-26 13:44:04 +02:00
Tomas Votruba
fcb865767a
make RectorServiceParametersShifter report better error in case of invalid configuration
2019-09-26 13:33:31 +02:00
Tomas Votruba
e2a8659b2c
fix easy-admin-bundle20 set
2019-09-26 13:26:06 +02:00
Tomas Votruba
9218288a80
[Rector] Add RemoveZeroBreakContinueRector
2019-09-26 08:07:35 +02:00
Tomas Votruba
de9baae58e
[Php71] Add ListToArrayDestructRector
2019-09-26 01:58:16 +02:00
Tomas Votruba
7b5fec4edb
improve UnsetCastRector
2019-09-26 01:43:25 +02:00
Tomas Votruba
8490b8c1e2
[Php53] Add DirNameFileConstantToDirConstantRector [ close #2006 ]
2019-09-26 01:00:58 +02:00
Tomas Votruba
1a44e5c084
[Restoration] Add MissingClassConstantReferenceToStringRector
2019-09-26 00:53:15 +02:00
Tomas Votruba
a18f1c3daf
[CodingStyle] Add CallUserFuncCallToVariadicRector
2019-09-25 23:13:37 +02:00
Tomas Votruba
135e72d577
[CodingStyle] Add MakeInheritedMethodVisibilitySameAsParentRector
2019-09-25 22:58:41 +02:00
Tomas Votruba
a833ca1366
fqnize freshly namespaced class
2019-09-25 18:15:31 +02:00
Tomas Votruba
97d9f0de91
Take tabs indent into account
2019-09-25 14:47:06 +02:00
Tomas Votruba
defae4acc5
Fix numeric string type in BinaryOpBetweenNumberAndStringRector
2019-09-25 10:03:19 +02:00
Tomas Votruba
e0fb86b2dd
[DeadCode] Skip magic property RemoveUnusedPrivatePropertyRector
2019-09-24 22:28:25 +02:00
Tomas Votruba
2c9aaea3f3
[PHP71] Fix BinaryOpBetweenNumberAndStringRector for variables
2019-09-24 21:57:58 +02:00
Tomas Votruba
3b151c8130
[Symfony] Add MergeMethodAnnotationToRouteAnnotationRector
2019-09-24 20:17:50 +02:00
Tomas Votruba
4fbca58523
add return type to step-3
2019-09-24 15:30:24 +02:00
Tomas Votruba
6ff6d7320a
[TypeDeclaration] Add AddMethodCallBasedParamTypeRector
2019-09-24 15:13:46 +02:00
Tomas Votruba
7b1595a931
fix renaming class to existing one [ closes #1438 ]
2019-09-24 07:27:26 +02:00