2112 Commits

Author SHA1 Message Date
Gabriel Caruso
76eed6fbeb [PHPUnit] Fix some Rectors documentation 2018-02-01 06:47:08 -02:00
Gabriel Caruso
b13075a5b4 [PHPUnit] Test namespaced functions in PHP 7 2018-02-01 06:41:38 -02:00
TomasVotruba
f2cd14dcef fix phpstan 2018-01-28 09:55:00 +01:00
Tomáš Votruba
f3478cae37
Merge pull request #301 from rectorphp/value-resolver
use ConstExprEvaluator instead of NodeValueResolver
2018-01-28 09:53:35 +01:00
TomasVotruba
93cc5d86c4 remove package, move ConstExprEvaluatorFactory to core 2018-01-27 21:02:01 +01:00
TomasVotruba
201d4919bb use ConstExprEvaluator instead of NodeValueResolver 2018-01-27 20:47:56 +01:00
Tomáš Votruba
0138660423
Merge pull request #286 from rectorphp/solid-rector
Added FluentReplacerRector
2018-01-26 11:12:19 +01:00
TomasVotruba
3dfd80e511 add link to README [skip ci] 2018-01-26 10:34:43 +01:00
TomasVotruba
5c104c4916 add Rector note to README [skip ci] 2018-01-26 10:34:27 +01:00
TomasVotruba
0cb555a3e2 naming 2018-01-26 10:28:07 +01:00
TomasVotruba
8b9bef1fb4 misc 2018-01-26 10:28:07 +01:00
TomasVotruba
b84bc6d120 FluentReplaceRector: simplify inner return call 2018-01-26 10:28:07 +01:00
TomasVotruba
c58d0c1414 fix static analysis 2018-01-26 10:28:07 +01:00
TomasVotruba
aa263e6a47 decouple decoupleMethodCall() 2018-01-26 10:28:07 +01:00
TomasVotruba
57626a3bf0 decouple isMethodCallCandidate() 2018-01-26 10:28:07 +01:00
TomasVotruba
0705463614 decrease complexity 2018-01-26 10:28:07 +01:00
TomasVotruba
7033c28d36 merge 2018-01-26 10:27:57 +01:00
TomasVotruba
bdb3eff4cf move method one call up + add separate call node 2018-01-26 10:26:50 +01:00
TomasVotruba
b010d0a603 add description 2018-01-26 10:26:50 +01:00
TomasVotruba
3f1048936e handle Return_ in own method 2018-01-26 10:26:50 +01:00
TomasVotruba
4ca2743a29 add relatedTypesAndMethods property to collect defluented methods 2018-01-26 10:26:50 +01:00
TomasVotruba
4cff4cede5 drop unused code 2018-01-26 10:26:50 +01:00
TomasVotruba
4b2a37b4fe AbstractRector: add remove node option 2018-01-26 10:26:50 +01:00
Gabriel Caruso
e79ca7b059 Return new Nop 2018-01-26 10:26:50 +01:00
Gabriel Caruso
bc977d7b7a Identify return $this 2018-01-26 10:26:50 +01:00
Gabriel Caruso
7ce8d9bcf5 [WIP] FluentReplaceRector 2018-01-26 10:26:50 +01:00
Tomáš Votruba
19afd3d768
Merge pull request #300 from rectorphp/phpunit-rectors
[PHPUnit] Create AbstractPHPUnitRector
2018-01-23 18:22:24 +01:00
Gabriel Caruso
05bdd5771f Add comment in isInTestClass explaing why we do this check 2018-01-23 14:16:20 -02:00
Gabriel Caruso
f021b2c05e Fix for PHPStan 2018-01-23 01:27:38 -02:00
Gabriel Caruso
ca62820216 Fixes from ECS 2018-01-23 01:12:51 -02:00
Gabriel Caruso
5f8df78ce7 Fix bug when calling toString in Variable 2018-01-23 01:12:51 -02:00
Gabriel Caruso
5e4b512f45 Reduce function's cyclomatic complexity 2018-01-23 01:12:50 -02:00
Gabriel Caruso
691eb10ea8 Create AbstractPHPUnitRector 2018-01-23 01:12:50 -02:00
Gabriel Caruso
4ba5435704 Fixes from EasyCodeStandard 2018-01-23 01:10:30 -02:00
Tomáš Votruba
18fceadecb
Merge pull request #297 from rectorphp/fix-phpstan-errors
Fixes from PHPStan
2018-01-20 01:33:11 +01:00
Tomáš Votruba
01f2ea2b7a
Merge pull request #296 from rectorphp/assert-array-has-key
[PHPUnit] AssertIssetToSpecificMethodRector
2018-01-18 23:39:40 +01:00
Gabriel Caruso
84eb4a0225 Return empty array instead of null 2018-01-18 19:56:58 -02:00
Gabriel Caruso
022e74c999 Check for non nullable variables 2018-01-18 19:24:02 -02:00
Gabriel Caruso
fb6e560a2b Add number of PHPStan errors to prioritize easy ones 2018-01-18 19:10:39 -02:00
Gabriel Caruso
c0c80a59cc Remove unreported errors 2018-01-18 18:44:32 -02:00
Gabriel Caruso
4f0481150d Fix phpDoc variable referenced 2018-01-18 18:10:17 -02:00
Gabriel Caruso
9b2363c31d Fix undefined property by fixing var type 2018-01-18 18:02:07 -02:00
Gabriel Caruso
2dce06e34c Fix calling method toString on null by casting as string 2018-01-18 17:38:49 -02:00
Gabriel Caruso
49117b7493 Fix PHPStan node::toString calling $name property 2018-01-18 17:34:52 -02:00
Gabriel Caruso
53a45c31d9 Reduce complexity while checking instances 2018-01-18 16:37:06 -02:00
Gabriel Caruso
5e1999a368 Fix custom message been overwritten 2018-01-18 15:42:38 -02:00
Gabriel Caruso
8591cc6716 Add assertArrayHasKey and assertArrayNotHasKey refactoring 2018-01-18 15:16:39 -02:00
Gabriel Caruso
bb2249e660 Rename to AssertIssetToSpecificMethodRector 2018-01-18 14:19:51 -02:00
Tomáš Votruba
7dfb63cabc
Merge pull request #291 from rectorphp/temlate-symfony-rector
[Sensiolabs] Add @Template annotation to render() Rector
2018-01-17 22:34:31 +01:00
TomasVotruba
02a955a34c fix @Route ( indent [closes #295] 2018-01-17 22:24:28 +01:00