3046 Commits

Author SHA1 Message Date
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
TomasVotruba
5bdc59187d decopule PhpParserTypeAnalyzer 2019-12-27 00:09:19 +01:00
TomasVotruba
0a6cc9676f decouple VendorLockResolver 2019-12-27 00:09:19 +01:00
Felix Sokoliuk
4a13da1cba add PHP version feature checks 2019-12-26 23:14:00 +01:00
TomasVotruba
faf1585431 fix function override under namespace 2019-12-26 21:54:08 +01:00
TomasVotruba
5ba17d53ac [DeadCode] Add TernaryToBooleanOrFalseToBooleanAndRector 2019-12-26 20:29:10 +01:00
TomasVotruba
d61a911e6a [NetteCodeQuality] Add TemplateMagicAssignToExplicitVariableArrayRector 2019-12-26 19:04:56 +01:00
Tomas Votruba
f8b644b6ff
fix PREG_SPLIT_DELIM_CAPTURE for split Nette Utils (#2493)
fix PREG_SPLIT_DELIM_CAPTURE for split Nette Utils
2019-12-26 15:49:49 +01:00
TomasVotruba
16199dbd01 fix PREG_SPLIT_DELIM_CAPTURE for split Nette Utils 2019-12-26 15:39:45 +01:00
Ruud Kamphuis
20e4266a93
Fix codesample in TypedPropertyRector
This rector does not remove the PHPDoc.
2019-12-26 15:04:31 +01:00
TomasVotruba
858af6b19c Fix name resolution in ArrayKeyFirstLastRector 2019-12-26 14:37:53 +01:00
TomasVotruba
04cc7e6122 skip non-variable non-scalars in BinaryOpBetweenNumberAndStringRector 2019-12-26 12:59:30 +01:00
TomasVotruba
3f293929ea add test case for #2454 2019-12-26 12:53:01 +01:00
TomasVotruba
4407860e79 fix alias object conflict with existing type 2019-12-26 12:16:41 +01:00
TomasVotruba
e0bfbda7ca update docs 2019-12-26 11:25:25 +01:00
TomasVotruba
d6b9122615 Fix double import of grouped namespaces 2019-12-26 11:12:48 +01:00
TomasVotruba
0dec93ead6 [Gedmo to Knp] Add TreeBehaviorRector 2019-12-26 00:46:43 +01:00
TomasVotruba
2ac711d2b2 [DoctrineGedmoToKnplabs] init set 2019-12-25 19:51:35 +01:00
Tomas Votruba
1205416200 init MoveValueObjectsToValueObjectDirectoryRector 2019-12-25 12:14:53 +01:00
TomasVotruba
a7df09e9ed merge ParentTypehintedArgumentRector and AddParamTypeDeclarationRector to AddParamTypeDeclarationRector 2019-12-25 11:15:32 +01:00
TomasVotruba
af53da23ad prevent re-adding id at AddEntityIdByConditionRector 2019-12-25 10:49:48 +01:00
Dorian Villet
56aa07c5c2 Abstract logic for named constructors in ClassMethodManipulator (reduces cognitive complexity). 2019-12-24 11:02:10 +01:00