2778 Commits

Author SHA1 Message Date
Tomas Votruba
743e27d661
[DeadCode] Add RemoveUnusedClassesRector (#2565)
[DeadCode] Add RemoveUnusedClassesRector
2020-01-05 00:19:38 +01:00
Tomas Votruba
6e31e37c42
fix ChangeArrayPushToArrayAssignRector for multiple items (#2566)
fix ChangeArrayPushToArrayAssignRector for multiple items
2020-01-05 00:17:47 +01:00
TomasVotruba
6be83258a6 make nested chain call remove configurable 2020-01-05 00:16:49 +01:00
TomasVotruba
90b7d2991f fix ChangeArrayPushToArrayAssignRector for multiple items 2020-01-05 00:14:23 +01:00
TomasVotruba
3b82be51c0 remove unused classes 2020-01-05 00:06:18 +01:00
TomasVotruba
9e67d30e84 [DeadCode] Add RemoveUnusedClassesRector 2020-01-05 00:03:42 +01:00
TomasVotruba
9e157a04f3 prevent variable scope changing 2020-01-04 16:03:30 +01:00
Tomas Votruba
430f63188f
Merge pull request #2562 from rectorphp/edges
Prevent variable name override
2020-01-04 15:31:44 +01:00
TomasVotruba
bb7995b83b preven variable name override 2020-01-04 15:30:53 +01:00
TomasVotruba
44e96deeff [CodingQuality] Add ForeachItemsAssignToEmptyArrayToAssignRector 2020-01-04 15:15:46 +01:00
TomasVotruba
7f99a934d4 [CodeQuality] Add ForRepeatedCountToOwnVariableRector 2020-01-04 14:08:43 +01:00
TomasVotruba
1e1e0c6069 add test case for #2265 2020-01-04 13:57:52 +01:00
TomasVotruba
bf0f8d111c improve test case 2020-01-04 13:41:16 +01:00
TomasVotruba
268480b2fc [MinimalScope] Add ChangeLocalPropertyToVariableRector 2020-01-04 01:12:15 +01:00
Tomas Votruba
a0cbf83d28
Improve 3rd party property type resolution (#2553)
Improve 3rd party property type resolution
2020-01-04 01:11:34 +01:00
TomasVotruba
e124806553 [CodeQuality] Add ChangeArrayPushToArrayAssignRector 2020-01-04 00:32:28 +01:00
TomasVotruba
3f6e1499e3 Add basic support for vendor property fetch detection based on phpdoc for CountOnNullRector 2020-01-04 00:00:25 +01:00
Tomas Votruba
f9cb78bb1f
[Php71] Add failing test case for CountOnNullRector (#2538)
[Php71] Add failing test case for CountOnNullRector
2020-01-03 23:54:00 +01:00
TomasVotruba
70fb9af2fd fix phar bleeding edge case phpstan bug 2020-01-03 21:48:59 +01:00
TomasVotruba
a5af2a7f3f skip existing iterable type with specified type 2020-01-03 19:19:40 +01:00
TomasVotruba
261aa3ce8e add mixed type 2020-01-03 19:19:40 +01:00
TomasVotruba
ff5cf3f535 add IterableType to StaticTypeMapper::mapPHPStanTypeToPHPStanPhpDocType() 2020-01-03 19:19:40 +01:00
TomasVotruba
09c926baf2 fix function callback in assert callback 2020-01-03 18:12:13 +01:00
TomasVotruba
0c19d27630 [Restoration] Preconfigure CompleteImportForPartialAnnotationRector 2020-01-02 16:55:17 +01:00
Tomas Votruba
d83ea25cb5
Merge pull request #2536 from gnutix/PropertyTypeDeclarationRector/add-support-for-phpstan-class-string-type
[TypeDeclaration] Add support for PhpStan's class-string type in PropertyTypeDeclarationRector
2019-12-31 00:16:56 +01:00
Dorian Villet
856afe1ec5 [Php71] Add failing test case for CountOnNullRector. 2019-12-31 00:14:52 +01:00
Dorian Villet
2c3724bf01 Add PHPStan Generic test too. 2019-12-30 22:34:58 +01:00
Dorian Villet
0a7485367e [TypeDeclaration] Add support for PhpStan's class-string type in PropertyTypeDeclarationRector. 2019-12-30 22:17:28 +01:00
TomasVotruba
795b54af45 improve generic type conversion 2019-12-30 22:15:08 +01:00
TomasVotruba
b40a1514bd skip generic types 2019-12-30 19:05:10 +01:00
TomasVotruba
52014ab277 handle generics 2019-12-30 18:53:50 +01:00
TomasVotruba
38a6bbdcfc keep non-simple array types for typed properties 2019-12-30 18:03:48 +01:00
TomasVotruba
8e4e386c91 simplify PHP 7.4 test 2019-12-30 17:53:28 +01:00
TomasVotruba
d8bc1da004 [PHP 7.4] Add @var removal to TypedPropertyRector 2019-12-30 15:42:39 +01:00
TomasVotruba
95090d048f [CodeQuality] Fix identical boolcast 2019-12-30 15:32:10 +01:00
TomasVotruba
cba238c308 allow shutdown function name at CallableThisArrayToAnonymousFunctionRector 2019-12-30 15:07:14 +01:00
TomasVotruba
36523e970a check string name 2019-12-30 15:07:14 +01:00
Tomas Votruba
71883a3822
Added phpdoc (#2529)
Added phpdoc
2019-12-30 14:49:08 +01:00
Markus Staab
1f5830f114
move phpdoc 2019-12-30 12:16:53 +01:00
TomasVotruba
5858c7601f [CodingStyle] Skip re-escaping chars by SymplifyQuoteEscapeRector 2019-12-30 12:13:17 +01:00
Markus Staab
87a1553a60
Added phpdoc 2019-12-30 12:12:11 +01:00
TomasVotruba
83aebb7f77 [DeadCode] Add RemoveUnusedElseAfterThrowRector 2019-12-30 11:57:16 +01:00
TomasVotruba
c8316f4e0e apply Rector CI 2019-12-29 23:55:12 +01:00
TomasVotruba
3e575b89e5 [DeadCode] RemoveUnusedElseForReturnedValueRector 2019-12-29 22:40:05 +01:00
TomasVotruba
07b4927891 add ctor only test-case 2019-12-29 21:24:47 +01:00
TomasVotruba
f2284702db add test case for #1244 2019-12-29 21:20:33 +01:00
TomasVotruba
2b60867493 [CodeQuality] Add AbsolutizeRequireAndIncludePathRector 2019-12-29 17:11:21 +01:00
TomasVotruba
48030e7257 [CodeQuality] Add ArrayKeyExistsTernaryThenValueToCoalescingRector 2019-12-29 16:52:34 +01:00
TomasVotruba
d4ba12f437 add example 2019-12-29 16:38:02 +01:00
TomasVotruba
97e574e5f2 [CodingStyle] Fix IdenticalFalseToBooleanNotRector for null|bool 2019-12-29 13:17:36 +01:00