72 Commits

Author SHA1 Message Date
TomasVotruba
0188d802d2 use SmartFileSystem over Nette FileSystem 2020-07-24 14:39:10 +02:00
TomasVotruba
c2c1066374 [rector] apply on rules 2020-07-19 20:52:42 +02:00
TomasVotruba
0944b75f7e correct namespace in configs 2020-07-18 11:58:17 +02:00
TomasVotruba
0c816d60f8 [config] switch rules config from YAML to PHP 2020-07-16 12:48:54 +02:00
TomasVotruba
ee291d1fdc use strings over ::class in type detection, as they ge tprifexed by phar builder 2020-07-12 16:38:04 +02:00
TomasVotruba
3c3c3a9530 remove func call from methods calls 2020-07-06 01:59:41 +02:00
TomasVotruba
86a88bffb6 remove unused file 2020-07-01 23:22:24 +02:00
TomasVotruba
78a97fb8bf typos, skip empty class 2020-07-01 22:28:58 +02:00
TomasVotruba
b0250a558c cover return new case 2020-06-30 20:21:24 +02:00
TomasVotruba
2758fd5339 re-use hasPhpDocTagValueNode() 2020-06-30 02:20:09 +02:00
TomasVotruba
a8a6e7bcad rename file to fileInfo 2020-06-30 01:45:05 +02:00
TomasVotruba
547e15099d use explicit xBuilder classes to prevent typos and PHPStan and PHPStorm confussion 2020-06-30 01:34:19 +02:00
TomasVotruba
0cb82c2a6f apply new Naming_ 2020-06-30 00:57:38 +02:00
TomasVotruba
7f49658112 change test(string ) to test(SmartFileInfo ) in tests 2020-06-25 20:02:36 +02:00
TomasVotruba
c504062ec2 add typed property if on PHP 7.4 2020-06-24 15:09:50 +02:00
TomasVotruba
407fb91e99 Simplify ExplicitPhpErrorApiRector 2020-06-13 12:45:38 +02:00
TomasVotruba
2a7b506db3 add segfault prevention 2020-06-10 22:19:18 +02:00
TomasVotruba
e16559faf7 Fix AddDoesNotPerformAssertionToNonAssertingTestRector for mockery 2020-06-10 21:47:21 +02:00
TomasVotruba
c4595c7b69 update to php-parser 4.5 2020-06-03 11:39:18 +02:00
TomasVotruba
f5c9450478 correct ExceptionAnnotationRector description 2020-06-03 00:07:15 +02:00
TomasVotruba
b1ab674690 cleanup 2020-05-31 12:17:49 +02:00
TomasVotruba
3b3951aa3a update to phpstan/phpstan-phpunit 0.12.10 2020-05-31 12:13:37 +02:00
TomasVotruba
6446fe5e22 update to phpstan/phpstan-phpunit 0.12.9 2020-05-31 01:32:13 +02:00
TomasVotruba
e3463b1073 add comments constant to prevent typos 2020-05-25 17:03:48 +02:00
rector-bot
f107ee1bf3 fixup! fixup! [Legacy] Add FunctionToStaticMethodRector 2020-05-13 13:55:36 +00:00
rector-bot
16da4594f4 fixup! [Legacy] Add FunctionToStaticMethodRector 2020-05-13 13:54:39 +00:00
TomasVotruba
0c67709fd0 [Legacy] Add FunctionToStaticMethodRector 2020-05-13 15:50:30 +02:00
TomasVotruba
97f8aece27 add test case for #3157 2020-05-12 16:41:59 +02:00
TomasVotruba
b5846db7a9 [PHPUnit] Fix CreateMockToCreateStubRector outside PHPUnit test case 2020-05-12 16:39:17 +02:00
TomasVotruba
23e468de75 add isLocalMethodCall names 2020-05-07 00:13:47 +02:00
TomasVotruba
b0bd524e53 apply constant decouple 2020-05-06 23:40:31 +02:00
TomasVotruba
491a417842 various @todo resolved 2020-05-06 17:37:27 +02:00
TomasVotruba
7ae2145d14 improve NodeFactory adding @var type via phpstan type 2020-05-05 22:33:00 +02:00
TomasVotruba
73991b3153 add DataProviderTagValueNode 2020-05-05 16:37:29 +02:00
TomasVotruba
73a5c61a92 drop FixDataProviderAnnotationTypoRector, fixing typos in single docblock annotation is too narrow 2020-05-05 15:43:55 +02:00
TomasVotruba
ec3a84e8d3 decouple IsAbleRector for is_countable and is_iterable abstraction 2020-05-05 14:24:56 +02:00
TomasVotruba
e8ac877527 remove @todo from fixtures 2020-05-05 14:24:56 +02:00
TomasVotruba
ef5501d06c various cs cleanup 2020-05-03 21:33:36 +02:00
TomasVotruba
00b3184eb3 [Naming] Add RenamePropertyToMatchTypeRector 2020-05-02 22:36:11 +02:00
TomasVotruba
1bf62ac1c7 [cs] sort private methods by call order and property by complexity 2020-04-26 02:57:47 +02:00
TomasVotruba
440e4af280 [PHPUnit] Fix ExceptionAnnotationRector for null phpdoc 2020-04-20 09:40:21 +02:00
TomasVotruba
0939387553 use getProperty() 2020-04-19 23:27:37 +02:00
TomasVotruba
c6bc133cb3 [PHPUnit] Add strict param to ReplaceAssertArraySubsetRector 2020-04-19 01:16:27 +02:00
TomasVotruba
b3fde24ab1 [PHPUnit] Add AddProphecyTraitRector 2020-04-01 02:37:21 +02:00
TomasVotruba
629042eeb4 move NodeRemovingRector to collector 2020-03-31 19:34:56 +02:00
TomasVotruba
626287ec76 apply privatization 2020-03-29 00:06:05 +01:00
TomasVotruba
eb88378488 improve chain method call resolutuin 2020-03-23 17:33:04 +01:00
TomasVotruba
0c3359e217 add variable to method call traverser 2020-03-23 17:16:10 +01:00
TomasVotruba
44a1654b66 split fixture 2020-03-23 17:16:10 +01:00
Grégoire Paris
88f27689eb WIP add createMock to createStub rector 2020-03-23 17:16:10 +01:00