2767 Commits

Author SHA1 Message Date
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
TomasVotruba
207d638888 [TypeDeclaration] Fix static property type resolution 2019-12-29 12:45:12 +01:00
TomasVotruba
e520cf9416 add resource type to StaticTypeMapper 2019-12-29 11:22:49 +01:00
TomasVotruba
bf76b6d2c4 Fix single-line comment 2019-12-27 18:37:24 +01:00
Tomas Votruba
b711990463
[CodeQuality] Add IntvalToTypeCastRector (#2510)
[CodeQuality] Add IntvalToTypeCastRector
2019-12-27 18:07:44 +01:00
Ruud Kamphuis
433f929cc3
Do not suggest typed property when defined in vendored parent
When the property is defined in vendored code, it doesn't make sense to suggest typed properties on classes that extend from it.
2019-12-27 17:51:40 +01:00
TomasVotruba
9dd43747b7 [CodeQuality] Add IntvalToTypeCastRector 2019-12-27 17:50:32 +01:00
TomasVotruba
0e933e2927 fix union type for ParamTypeDeclarationRector 2019-12-27 16:16:39 +01:00
TomasVotruba
97eb67be92 fix AddArrayReturnDocTypeRector for existing comment 2019-12-27 15:01:50 +01:00
TomasVotruba
22898a23cc add hasByType() method to PhpDocInfo 2019-12-27 13:48:50 +01:00
TomasVotruba
d4849b1cf3 add Translatable Behavior Rector 2019-12-27 13:25:14 +01:00
TomasVotruba
ff5c3474a5 Apply HelperFunctionToConstructorInjectionRector only in non-static class method scope 2019-12-27 00:56:30 +01:00