197 Commits

Author SHA1 Message Date
Tomas Votruba
0da741a9a3 drop @return type from Iterator in tests 2019-09-27 14:40:09 +02:00
Tomas Votruba
e4eeb19c45 [CodeQuality] Add RemoveSoleValueSprintfRector 2019-09-26 13:44:04 +02:00
Tomas Votruba
980778d69b move SwapFuncCallArgumentsRector to Argument 2019-09-23 18:19:04 +02:00
Tomas Votruba
2858a9f7ea [PHP] Move tests + fixture to split package by version 2019-09-23 15:16:31 +02:00
Tomas Votruba
f558733611 [PHP] Split huge package to php by version rules 2019-09-23 13:38:51 +02:00
Tomas Votruba
d6d48ea44b make ShouldNotHappenException smarter 2019-09-21 13:30:03 +02:00
Tomas Votruba
3f6fddee71 make DocBlockManipulator protected in AbstractRector + add ColumnGenerator annotatoin parsing 2019-09-19 17:30:31 +02:00
Tomas Votruba
ca7d0cba15 use PHP highlight for herenow doc 2019-09-18 09:14:06 +02:00
Tomas Votruba
25509c9900 [Autodiscovery] init 2019-09-15 16:51:00 +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
fe3152e817 add AssignManipulator + misc 2019-09-14 17:51:14 +02:00
Tomas Votruba
4c9ecba04c [tests] switch testFiles to data providers 2019-09-12 10:18:26 +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
89e21ea68b merge NodeToStringTypeResolver, StaticTypeToStringResolver, PHPStan\StaticTypeToStringResolver to StaticTypeMapper 2019-09-04 12:23:03 +02:00
Tomas Votruba
79ffad4a0b add @see annotations 2019-09-03 14:05:21 +02:00
Tomas Votruba
2a0d0d7ac1 from helper methods to isStaticType() with PHPStan object typing 2019-09-03 10:06:04 +02:00
Tomas Votruba
fbe425746e [dx] make should not happen more informative 2019-08-26 18:47:46 +02:00
Tomas Votruba
361a2936d7 import rector self 2019-08-21 19:14:03 +02:00
Tomas Votruba
6c7927fc17 class manipulator now returns Property on property name search 2019-08-11 16:21:56 +02:00
Tomas Votruba
6000b30369 [DeadCode] Add RemoveSetterOnlyPropertyAndMethodCallRector 2019-08-06 12:50:53 +02:00
Tomas Votruba
02463d2bc3 cleanup phpstan errors 2019-08-04 20:49:03 +02:00
Tomas Votruba
32b19b437b [CodeQuality] Add ThrowWithPreviousExceptionRector 2019-07-23 11:08:04 +02:00
Tomáš Votruba
981df8a90f
[CodeQuality] Add RemoveAlwaysTrueConditionSetInConstructorRect… (#1754)
[CodeQuality] Add RemoveAlwaysTrueConditionSetInConstructorRector
2019-07-19 22:32:41 +02:00
Tomas Votruba
953de95cf0 [CodeQuality] Add RemoveAlwaysTrueConditionSetInConstructorRector 2019-07-19 21:49:42 +02:00
Tomas Votruba
e8b5a11ce4 [CodeQuality] Fix CompleteDynamicPropertiesRector for dynamic property fetch 2019-07-19 16:00:55 +02:00
Tomas Votruba
704a32ee54 skip Illuminate\Support\Collection magic for CompleteDynamicPropertiesRector 2019-07-10 09:26:59 +02:00
Tomas Votruba
2f0396d462 add test case for #1595 2019-07-10 09:26:59 +02:00
Tomas Votruba
bb2f77f4b0 [DeadCode] Keep array method call in RemoveUnusedPrivateMethodRector 2019-07-09 19:45:03 +02:00
Tomas Votruba
d3115e8b8a [CodeQuality] Fix StrlenZeroToIdenticalEmptyStringRector skipping non-matching binary 2019-07-09 17:06:58 +02:00
Tomas Votruba
6095a810ad fix cs 2019-07-05 18:12:37 +03:00
Tomas Votruba
fadc28afa3 [CodeQuality] Add StrlenZeroToIdenticalEmptyStringRector 2019-07-05 00:31:24 +03:00
Tomas Votruba
d94e26822d [CodeQuality] Add is_a with string true 2019-07-05 00:06:01 +03:00
Tomas Votruba
57602fc3a9 fix new phpstan reports 2019-07-04 12:29:37 +03:00
Tomas Votruba
302d2abb55 [CodeQuality] Fix __set/__get case for CompleteDynamicPropertiesRector 2019-06-16 01:16:41 +02:00
Tomas Votruba
e15518081a add SimplifyUselessVariableRector to dead-code set 2019-06-08 22:40:51 +02:00
Tomas Votruba
f4cefb18d3 add CallableNodeTraverserTrait 2019-06-04 23:39:57 +03:00
Tomas Votruba
ddda93005f optimize 2019-06-04 15:01:50 +03:00
Tomas Votruba
9dfb666039 [CodeQuality] Skip collections ForeachToInArrayRector [closes #1533] 2019-06-04 14:58:55 +03:00
Aerendir
3aa383883f Ensure Doctrine's Collection-like arrays are ignored.
Issue #1533.
2019-06-04 11:29:05 +02:00
Tomas Votruba
f6da9d2854 fix static 2019-05-31 12:53:59 +02:00
Tomas Votruba
f799d5385c [CodeQuality] Add trait and parent class support for CompleteDynamicPropertiesRector 2019-05-31 08:11:46 +02:00
Tomas Votruba
027a072fb3 [CodeQuality] Fix unneeded return in CallableThisArrayToAnonymousFunctionRector 2019-05-31 00:45:56 +02:00
Adamo Crespi
eaf22f8069
Update no_return_for_void.php.inc 2019-05-30 20:14:18 +02:00
Aerendir
2d64a07c33 Test void methods doesn't have the return statement added. 2019-05-30 15:43:28 +02:00
Tomas Votruba
3389d71219 add defined test case 2019-05-26 22:04:20 +02:00
Tomas Votruba
224bc33174 [CodeQuality] Add CompleteDynamicPropertiesRector 2019-05-26 22:04:20 +02:00
Tomas Votruba
53cd941dcd refactor ImportFullyQualifiedNamesRector to allow non-namespaced elements 2019-05-22 17:33:51 +02:00
Tomas Votruba
ad95d018b5 [CodeQuality] Add CompactToVariablesRector 2019-05-19 10:26:00 +02:00
Tomas Votruba
c71a2e8f81 report deleted/added files in FileSystem Rectors 2019-05-19 09:38:39 +02:00