1
0
mirror of https://github.com/rectorphp/rector.git synced 2025-04-10 02:22:50 +02:00

6976 Commits

Author SHA1 Message Date
Tomas Votruba
430f63188f
Merge pull request 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
Tomas Votruba
c314102632
[CodingQuality] Add ForeachItemsAssignToEmptyArrayToAssignRector ()
[CodingQuality] Add ForeachItemsAssignToEmptyArrayToAssignRector
2020-01-04 15:27:00 +01:00
TomasVotruba
44e96deeff [CodingQuality] Add ForeachItemsAssignToEmptyArrayToAssignRector 2020-01-04 15:15:46 +01:00
Tomas Votruba
b7d6078852
[CodeQuality] Add ForRepeatedCountToOwnVariableRector ()
[CodeQuality] Add ForRepeatedCountToOwnVariableRector
2020-01-04 14:35:09 +01:00
TomasVotruba
7f99a934d4 [CodeQuality] Add ForRepeatedCountToOwnVariableRector 2020-01-04 14:08:43 +01:00
Tomas Votruba
76d9bf4ebc
Merge pull request from rectorphp/fix-unused-alias
Add test case for unused alias
2020-01-04 13:58:11 +01:00
TomasVotruba
1e1e0c6069 add test case for 2020-01-04 13:57:52 +01:00
TomasVotruba
bf0f8d111c improve test case 2020-01-04 13:41:16 +01:00
Tomas Votruba
aecc17e339
[MinimalScope] Add ChangeLocalPropertyToVariableRector ()
[MinimalScope] Add ChangeLocalPropertyToVariableRector
2020-01-04 01:38:42 +01:00
TomasVotruba
268480b2fc [MinimalScope] Add ChangeLocalPropertyToVariableRector 2020-01-04 01:12:15 +01:00
Tomas Votruba
a0cbf83d28
Improve 3rd party property type resolution ()
Improve 3rd party property type resolution
2020-01-04 01:11:34 +01:00
Tomas Votruba
2d02c38d24
[CodeQuality] Add ChangeArrayPushToArrayAssignRector ()
[CodeQuality] Add ChangeArrayPushToArrayAssignRector
2020-01-04 01:11:23 +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 ()
[Php71] Add failing test case for CountOnNullRector
2020-01-03 23:54:00 +01:00
Tomas Votruba
e66d4cfab7
allow loading bleedingEdge.neon config inside PHPStan phar ()
allow loading bleedingEdge.neon config inside PHPStan phar
2020-01-03 22:07:44 +01:00
TomasVotruba
70fb9af2fd fix phar bleeding edge case phpstan bug 2020-01-03 21:48:59 +01:00
TomasVotruba
9fa2fd0d28 add bleeding edge for 2020-01-03 21:06:20 +01:00
Tomas Votruba
fbf9b0f770
add IterableType to StaticTypeMapper::mapPHPStanTypeToPHPStanPh… ()
add IterableType to StaticTypeMapper::mapPHPStanTypeToPHPStanPhpDocType()
2020-01-03 19:34:24 +01:00
TomasVotruba
88d3111975 update docs 2020-01-03 19:20:13 +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
Tomas Votruba
b90ab6e159
fix function callback in assert callback ()
fix function callback in assert callback
2020-01-03 18:22:15 +01:00
TomasVotruba
09c926baf2 fix function callback in assert callback 2020-01-03 18:12:13 +01:00
Tomas Votruba
b221a16f06
[Restoration] Preconfigure CompleteImportForPartialAnnotationRe… ()
[Restoration] Preconfigure CompleteImportForPartialAnnotationRector
2020-01-03 14:07:16 +01:00
TomasVotruba
cb4b100ce2 Add CHANGELOG for 0.6.5 v0.6.5 2020-01-03 12:29:59 +01:00
TomasVotruba
0c19d27630 [Restoration] Preconfigure CompleteImportForPartialAnnotationRector 2020-01-02 16:55:17 +01:00
Tomas Votruba
d83ea25cb5
Merge pull request 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
Tomas Votruba
24173b0290
Merge pull request from rectorphp/generic
improve generic type conversion
2019-12-31 00:16:19 +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
Tomas Votruba
f4bfaeba0d
[PHP 7.4] Add @var removal to TypedPropertyRector ()
[PHP 7.4] Add @var removal to TypedPropertyRector
2019-12-30 20:04:17 +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
Tomas Votruba
928bb827f4
Merge pull request from rectorphp/fix-bool
[CodeQuality] Fix identical boolcast
2019-12-30 15:37:55 +01:00
TomasVotruba
95090d048f [CodeQuality] Fix identical boolcast 2019-12-30 15:32:10 +01:00
Tomas Votruba
2f30627048
Apply Rector on itself ()
Apply Rector on itself
2019-12-30 15:21:13 +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 ()
Added phpdoc
2019-12-30 14:49:08 +01:00
Tomas Votruba
93acc28efa
[CodingStyle] Skip re-escaping chars by SymplifyQuoteEscapeRect… ()
[CodingStyle] Skip re-escaping chars by SymplifyQuoteEscapeRector
2019-12-30 14:43:09 +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